Villager protections.
Interacting (right click) now requires containertrust or higher.
This commit is contained in:
parent
b39a7d57c7
commit
78c346f789
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user