Fix water dispensers in nether.

This commit is contained in:
Brianna 2020-10-26 14:11:52 -05:00
parent 2aec48166a
commit b284d4955a

View File

@ -717,6 +717,10 @@ public class BlockListeners implements Listener {
BlockFace dispenserDirection = ((org.bukkit.material.Dispenser) event.getBlock().getState().getData()).getFacing();
org.bukkit.block.Block placeLocation = event.getBlock().getRelative(dispenserDirection);
if (this.plugin.getConfiguration().getBoolean("Island.Nether.AllowNetherWater", false))
placeLocation.setType(Material.WATER);
Island island = islandManager.getIslandAtLocation(placeLocation.getLocation());
if (island == null) return;