mappings
This commit is contained in:
1 parent
a757c6f88a
commit
64ffb27763
6 files changed
+11
-12
No files matched your search
@@ -344,8 +344,7 @@ public class EntityPlayerActionPack
|
||||
BlockHitResult blockHit = (BlockHitResult) hit;
|
||||
BlockPos pos = blockHit.getBlockPos();
|
||||
Direction side = blockHit.getSide();
|
||||
// rather should be canNotMine
|
||||
if (player.canMine(player.world, pos, player.interactionManager.getGameMode())) return false;
|
||||
if (player.isBlockBreakingRestricted(player.world, pos, player.interactionManager.getGameMode())) return false;
|
||||
if (ap.currentBlock != null && player.world.getBlockState(ap.currentBlock).isAir())
|
||||
{
|
||||
ap.currentBlock = null;
|
||||
|
||||
Reference in new issue
Block a user