mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-08 19:38:57 +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());
|
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();
|
final Entity entity = ((EntityHitResult) crosshairTarget).getEntity();
|
||||||
itemStack = entity.getPickBlockStack();
|
itemStack = entity.getPickBlockStack();
|
||||||
if (itemStack == null) {
|
if (itemStack == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user