Fixed an issue with the dispenser update.
This commit is contained in:
parent
e4b52a45ac
commit
66b91315f7
|
@ -718,7 +718,8 @@ public class BlockListeners implements Listener {
|
|||
org.bukkit.block.Block placeLocation = event.getBlock().getRelative(dispenserDirection);
|
||||
|
||||
|
||||
if (this.plugin.getConfiguration().getBoolean("Island.Nether.AllowNetherWater", false))
|
||||
if (CompatibleMaterial.getMaterial(event.getItem()) == CompatibleMaterial.WATER_BUCKET
|
||||
&& this.plugin.getConfiguration().getBoolean("Island.Nether.AllowNetherWater", false))
|
||||
placeLocation.setType(Material.WATER);
|
||||
|
||||
Island island = islandManager.getIslandAtLocation(placeLocation.getLocation());
|
||||
|
|
Loading…
Reference in New Issue