Fix 'waterlogged' blocks in Forge 1.13.2+
This commit is contained in:
parent
32a0ad0c86
commit
7c0b515272
3 changed files with 13 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ import java.util.regex.Pattern;
|
|||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.FlowingFluidBlock;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.command.CommandException;
|
||||
import net.minecraft.command.CommandSource;
|
||||
|
|
@ -269,6 +270,9 @@ public class DynmapPlugin
|
|||
if (mat == Material.LEAVES) {
|
||||
dbs.setLeaves();
|
||||
}
|
||||
if ((!bs.getFluidState().isEmpty()) && !(bs.getBlock() instanceof FlowingFluidBlock)) {
|
||||
dbs.setWaterlogged();
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue