Skip to content

Commit

Permalink
Update PSEntityListener (Protection against damage to the item in the…
Browse files Browse the repository at this point in the history
… frame) (#127)

* Update PSEntityListener (Protection against damage to the item in the frame) #124 

Co-authored-by: xtomyserrax <xtomyserrax@users.noreply.github.com>
  • Loading branch information
xGlenor and xtomyserrax authored Jul 21, 2021
1 parent 43486ad commit d0af768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>net.sacredlabyrinth.Phaed</groupId>
<artifactId>PreciousStones</artifactId>
<version>1.17.1.1</version>
<version>1.17.1.2</version>
<name>PreciousStones</name>
<url>https://github.com/elBukkit/PreciousStones</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public void onEntityDamage(EntityDamageEvent event) {
return;
}

if (event.getEntity().getType().equals(EntityType.ITEM_FRAME)) {
if (event.getEntity().getType().equals(EntityType.ITEM_FRAME) || event.getEntity().getType().equals(EntityType.GLOW_ITEM_FRAME)) {
Player player = Helper.getDamagingPlayer(event);

if (player != null && !plugin.getPermissionsManager().has(player, "preciousstones.bypass.item-frame-take")) {
Expand Down

0 comments on commit d0af768

Please sign in to comment.