0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Ignore unbreakable blocks

This commit is contained in:
DrMaxNix 2024-03-01 21:36:57 +01:00
parent 86f3ae889d
commit 8f14c7a7b7

View File

@ -94,6 +94,9 @@ public final class FastBreakHack extends Hack
return;
BlockPos blockPos = event.getBlockPos();
if(MC.world.getBlockState(blockPos).getBlock().getHardness() < 0)
return;
if(!blockPos.equals(lastBlockPos))
{
lastBlockPos = blockPos;