Protect flower pots

This commit is contained in:
RoboMWM 2016-11-20 15:02:35 -08:00
parent 410dc3c3da
commit 72070c8df3

View File

@ -1684,7 +1684,7 @@ class PlayerEventHandler implements Listener
}
}
//apply rule for note blocks and repeaters and daylight sensors
//apply rule for note blocks and repeaters and daylight sensors //RoboMWM: Include flower pots
else if(clickedBlock != null &&
(
clickedBlockType == Material.NOTE_BLOCK ||
@ -1694,7 +1694,8 @@ class PlayerEventHandler implements Listener
clickedBlockType == Material.DAYLIGHT_DETECTOR ||
clickedBlockType == Material.DAYLIGHT_DETECTOR_INVERTED ||
clickedBlockType == Material.REDSTONE_COMPARATOR_ON ||
clickedBlockType == Material.REDSTONE_COMPARATOR_OFF
clickedBlockType == Material.REDSTONE_COMPARATOR_OFF ||
clickedBlockType == Material.FLOWER_POT
))
{
if(playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());