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:
parent
86f3ae889d
commit
8f14c7a7b7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user