mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-29 13:45:13 +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();
|
BlockFace dispenserDirection = ((org.bukkit.material.Dispenser) event.getBlock().getState().getData()).getFacing();
|
||||||
org.bukkit.block.Block placeLocation = event.getBlock().getRelative(dispenserDirection);
|
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());
|
Island island = islandManager.getIslandAtLocation(placeLocation.getLocation());
|
||||||
if (island == null) return;
|
if (island == null) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user