Skip to content

Commit 70524b9

Browse files
committed
fix chest insertion lmao
1 parent 03fbb35 commit 70524b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/dev/dfonline/codeclient/mixin/entity/player/MClientPlayerInteractionManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import dev.dfonline.codeclient.dev.InteractionManager;
88
import dev.dfonline.codeclient.dev.NoClip;
99
import dev.dfonline.codeclient.location.Dev;
10+
import net.minecraft.block.Blocks;
1011
import net.minecraft.client.MinecraftClient;
1112
import net.minecraft.client.network.ClientPlayNetworkHandler;
1213
import net.minecraft.client.network.ClientPlayerEntity;
@@ -137,6 +138,7 @@ private void attackBlock(BlockPos pos, Direction direction, CallbackInfoReturnab
137138
if(!Config.getConfig().CustomBlockBreaking) return;
138139
if(CodeClient.location instanceof Dev dev) {
139140
if(!dev.isInDev(pos)) return;
141+
if(CodeClient.MC.world.getBlockState(pos).getBlock() == Blocks.CHEST) return;
140142
BlockPos breakPos = InteractionManager.isBlockBreakable(pos);
141143
if(breakPos == null) {
142144
cancelBlockBreaking();

0 commit comments

Comments
 (0)