Injuring villagers requires build trust.
Up from container trust previously.
This commit is contained in:
parent
682ededb81
commit
84731dc28e
|
|
@ -618,7 +618,9 @@ class EntityEventHandler implements Listener
|
|||
if(!GriefPrevention.instance.claimsEnabledForWorld(event.getEntity().getWorld())) return;
|
||||
|
||||
//if the damaged entity is a claimed item frame or armor stand, the damager needs to be a player with container trust in the claim
|
||||
if(subEvent.getEntityType() == EntityType.ITEM_FRAME || subEvent.getEntityType() == EntityType.ARMOR_STAND)
|
||||
if(subEvent.getEntityType() == EntityType.ITEM_FRAME
|
||||
|| subEvent.getEntityType() == EntityType.ARMOR_STAND
|
||||
|| subEvent.getEntityType() == EntityType.VILLAGER)
|
||||
{
|
||||
//decide whether it's claimed
|
||||
Claim cachedClaim = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user