Fixed an issue with the dispenser update.

This commit is contained in:
Brianna 2020-11-09 14:59:40 -06:00
parent e4b52a45ac
commit 66b91315f7
1 changed files with 2 additions and 1 deletions

View File

@ -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());