Required build trust for redstone comparators.

Changing their configurations now requires build permission.
This commit is contained in:
ryanhamshire 2015-07-09 18:39:41 -07:00
parent 3c30168fb9
commit a35ec99ddf

View File

@ -1616,7 +1616,9 @@ class PlayerEventHandler implements Listener
clickedBlockType == Material.DIODE_BLOCK_OFF || clickedBlockType == Material.DIODE_BLOCK_OFF ||
clickedBlockType == Material.DRAGON_EGG || clickedBlockType == Material.DRAGON_EGG ||
clickedBlockType == Material.DAYLIGHT_DETECTOR || clickedBlockType == Material.DAYLIGHT_DETECTOR ||
clickedBlockType == Material.DAYLIGHT_DETECTOR_INVERTED clickedBlockType == Material.DAYLIGHT_DETECTOR_INVERTED ||
clickedBlockType == Material.REDSTONE_COMPARATOR_ON ||
clickedBlockType == Material.REDSTONE_COMPARATOR_OFF
)) ))
{ {
if(playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId()); if(playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());