removed water-logging check for shipwrecks

This commit is contained in:
Unknown
2019-12-14 16:45:03 -05:00
parent 525d67f0f1
commit b86892c10a
@@ -9,6 +9,7 @@ import kaptainwutax.seedcracker.render.Cuboid;
import net.minecraft.block.*;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.ChestBlockEntity;
import net.minecraft.block.enums.ChestType;
import net.minecraft.client.util.math.Vector4f;
import net.minecraft.util.math.BlockBox;
import net.minecraft.util.math.BlockPos;
@@ -45,7 +46,7 @@ public class ShipwreckFinder extends BlockFinder {
result.removeIf(pos -> {
BlockState state = this.world.getBlockState(pos);
if(!state.get(ChestBlock.WATERLOGGED))return true;
if(state.get(ChestBlock.CHEST_TYPE) != ChestType.SINGLE)return true;
BlockEntity blockEntity = this.world.getBlockEntity(pos);
if(!(blockEntity instanceof ChestBlockEntity))return true;