mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-02 21:41:39 +01:00
Fix sponge-simulation clearing NBT of waterlogged blocks.
Fixes #1659. Didn't realize people still used this feature.
This commit is contained in:
parent
07bf1871ab
commit
664ab18f00
@ -24,7 +24,7 @@
|
||||
import com.sk89q.worldedit.math.BlockVector3;
|
||||
import com.sk89q.worldedit.registry.state.Property;
|
||||
import com.sk89q.worldedit.world.World;
|
||||
import com.sk89q.worldedit.world.block.BlockState;
|
||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||
import com.sk89q.worldedit.world.block.BlockType;
|
||||
import com.sk89q.worldedit.world.block.BlockTypes;
|
||||
import com.sk89q.worldguard.WorldGuard;
|
||||
@ -60,7 +60,7 @@ public static void clearSpongeWater(World world, int ox, int oy, int oz) {
|
||||
for (int cy = -wcfg.spongeRadius; cy <= wcfg.spongeRadius; cy++) {
|
||||
for (int cz = -wcfg.spongeRadius; cz <= wcfg.spongeRadius; cz++) {
|
||||
BlockVector3 vector = BlockVector3.at(ox + cx, oy + cy, oz + cz);
|
||||
BlockState block = world.getBlock(vector);
|
||||
BaseBlock block = world.getFullBlock(vector);
|
||||
BlockType blockType = block.getBlockType();
|
||||
if (isReplacable(blockType)) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user