Invert operation

This commit is contained in:
FlorianMichael 2024-12-07 01:34:39 +01:00
parent 6d4fbbd70a
commit 9599b64ff7
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -88,7 +88,10 @@ public class ItemPick1_21_3 {
addBlockEntityNbt(itemStack, blockEntity, client.world.getRegistryManager());
}
}
} else if (crosshairTarget.getType() == HitResult.Type.ENTITY && creativeMode) {
} else {
if (crosshairTarget.getType() != HitResult.Type.ENTITY || !creativeMode) {
return;
}
final Entity entity = ((EntityHitResult) crosshairTarget).getEntity();
itemStack = entity.getPickBlockStack();
if (itemStack == null) {