Fixed not being able to target tile entities when you want to break them (protection off).

This commit is contained in:
Christian Knaapen
2023-11-18 20:53:28 +01:00
parent 4537dd409d
commit 1607aa35ce

View File

@@ -197,7 +197,7 @@ public class BuilderChain {
boolean lookingAtInteractiveObject = ClientBlockUtilities.determineIfLookingAtInteractiveObject(mc, world); boolean lookingAtInteractiveObject = ClientBlockUtilities.determineIfLookingAtInteractiveObject(mc, world);
boolean isShiftKeyDown = player.isShiftKeyDown(); boolean isShiftKeyDown = player.isShiftKeyDown();
if (lookingAtInteractiveObject && !isShiftKeyDown) if (lookingAtInteractiveObject && !isShiftKeyDown && EffortlessBuildingClient.BUILD_SETTINGS.shouldProtectTileEntities())
return AbilitiesState.NONE; return AbilitiesState.NONE;
if (!blockInHand) if (!blockInHand)