From 6d65439cbf7a18ead0af996cc4e2890b623b008e Mon Sep 17 00:00:00 2001 From: YocyCraft Date: Sun, 22 Dec 2024 03:20:24 +0800 Subject: [PATCH] Remove comments --- .../java/dev/dubhe/anvilcraft/block/GiantAnvilBlock.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/dev/dubhe/anvilcraft/block/GiantAnvilBlock.java b/src/main/java/dev/dubhe/anvilcraft/block/GiantAnvilBlock.java index 3ff9535f6..f4cff4e73 100644 --- a/src/main/java/dev/dubhe/anvilcraft/block/GiantAnvilBlock.java +++ b/src/main/java/dev/dubhe/anvilcraft/block/GiantAnvilBlock.java @@ -9,7 +9,6 @@ import dev.dubhe.anvilcraft.block.state.GiantAnvilCube; import dev.dubhe.anvilcraft.entity.FallingGiantAnvilEntity; import dev.dubhe.anvilcraft.init.ModBlocks; - import net.minecraft.MethodsReturnNonnullByDefault; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; @@ -45,10 +44,8 @@ import net.minecraft.world.phys.shapes.CollisionContext; import net.minecraft.world.phys.shapes.Shapes; import net.minecraft.world.phys.shapes.VoxelShape; - import net.neoforged.neoforge.common.NeoForge; import org.jetbrains.annotations.Nullable; - import javax.annotation.ParametersAreNonnullByDefault; import java.util.stream.Stream; @@ -323,14 +320,13 @@ public void tick( BlockPos bp = pos.offset(dx, dy, dz); BlockState blockState = level.getBlockState(bp); level.setBlock(bp, blockState.getFluidState().createLegacyBlock(), 3, 0); -// level.setBlock(bp, blockState.getFluidState().createLegacyBlock(), 18); } } } UPDATE_OFFSET.forEach((direction, offestList) -> offestList.forEach(offset -> { BlockPos updatedPos = pos.offset(offset); - BlockPos fromPos = pos.relative(direction); + BlockPos fromPos = updatedPos.relative(direction); level.neighborShapeChanged(direction, level.getBlockState(fromPos), updatedPos,