mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-13 05:53:57 +01:00
Fix water dispensers in nether.
This commit is contained in:
parent
2aec48166a
commit
b284d4955a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user