Injuring villagers requires build trust.

Up from container trust previously.
This commit is contained in:
ryanhamshire 2015-01-14 17:28:09 -08:00
parent 682ededb81
commit 84731dc28e

View File

@ -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;