Villager protections.
Interacting (right click) now requires containertrust or higher.
This commit is contained in:
1 parent
b39a7d57c7
commit
78c346f789
1 file changed
+1
-1
@@ -997,7 +997,7 @@ class PlayerEventHandler implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if the entity is an animal, apply container rules
|
//if the entity is an animal, apply container rules
|
||||||
if(GriefPrevention.instance.config_claims_preventTheft && entity instanceof Animals)
|
if(GriefPrevention.instance.config_claims_preventTheft && (entity instanceof Animals || entity.getType() == EntityType.VILLAGER))
|
||||||
{
|
{
|
||||||
//if the entity is in a claim
|
//if the entity is in a claim
|
||||||
Claim claim = this.dataStore.getClaimAt(entity.getLocation(), false, null);
|
Claim claim = this.dataStore.getClaimAt(entity.getLocation(), false, null);
|
||||||
|
|||||||
Reference in new issue
Block a user