mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Invert operation
This commit is contained in:
parent
6d4fbbd70a
commit
9599b64ff7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user