Skip to content

Commit

Permalink
Fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Feb 14, 2023
1 parent ad3e1ba commit 34d7352
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static InteractionResult onUseBlock(Player player, Level world, Interacti

final BlockEntity blockEntity = Minecraft.getInstance().level.getBlockEntity(craftingPos);
assert !ContainerDiscovery.fakePacketsActive();
if (blockEntity != null) {
if (blockEntity instanceof InteractableContainer) {
((ICSPlayer) player).cs_setLastInteractedContainer(ContainerUtil.getContainer(blockEntity));
} else {
((ICSPlayer) player).cs_setLastInteractedContainer(null);
Expand Down

0 comments on commit 34d7352

Please sign in to comment.