mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-09 17:27:37 +01:00
Consider waterlogged blocks in 1.13
This commit is contained in:
parent
d1fdc9217a
commit
e8c95c9894
@ -78,7 +78,8 @@ public final class LocationUtil {
|
||||
for(locWorking.setY(locWorking.getBlockY()); locWorking.getBlockY()>=0; locWorking.setY(locWorking.getBlockY()-1)){
|
||||
if(!locWorking.getBlock().isEmpty()){
|
||||
if(locWorking.getBlock().getType().equals(CompatibleMaterial.WATER.getMaterial()) ||
|
||||
(NMSUtil.getVersionNumber() > 13 && locWorking.getBlock().getBlockData() instanceof org.bukkit.block.data.Waterlogged)){
|
||||
(ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13) &&
|
||||
locWorking.getBlock().getBlockData() instanceof org.bukkit.block.data.Waterlogged)){
|
||||
loc = locWorking;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user