Fixed disc theft.
This commit is contained in:
parent
0cb4572269
commit
8070da8dda
|
|
@ -1286,6 +1286,7 @@ class PlayerEventHandler implements Listener
|
||||||
if( clickedBlock != null && GriefPrevention.instance.config_claims_preventTheft && (
|
if( clickedBlock != null && GriefPrevention.instance.config_claims_preventTheft && (
|
||||||
event.getAction() == Action.RIGHT_CLICK_BLOCK && (
|
event.getAction() == Action.RIGHT_CLICK_BLOCK && (
|
||||||
this.isInventoryHolder(clickedBlock) ||
|
this.isInventoryHolder(clickedBlock) ||
|
||||||
|
clickedBlockType == Material.JUKEBOX ||
|
||||||
clickedBlockType == Material.ANVIL ||
|
clickedBlockType == Material.ANVIL ||
|
||||||
GriefPrevention.instance.config_mods_containerTrustIds.Contains(new MaterialInfo(clickedBlock.getTypeId(), clickedBlock.getData(), null)))))
|
GriefPrevention.instance.config_mods_containerTrustIds.Contains(new MaterialInfo(clickedBlock.getTypeId(), clickedBlock.getData(), null)))))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user