diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-20 20:30:48 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-20 20:30:48 +0800 |
| commit | b9b3c423d5610b7ff88d7c5b944219ae1bf5a663 (patch) | |
| tree | 2696fc7a0faca4f14e864509076fe80c60340a28 /src/main/java/me/shedaniel/rei/client/ClientHelper.java | |
| parent | ab768ef534c801056522ea3416022ae8479f662a (diff) | |
| download | RoughlyEnoughItems-b9b3c423d5610b7ff88d7c5b944219ae1bf5a663.tar.gz RoughlyEnoughItems-b9b3c423d5610b7ff88d7c5b944219ae1bf5a663.tar.bz2 RoughlyEnoughItems-b9b3c423d5610b7ff88d7c5b944219ae1bf5a663.zip | |
New Plugin Loader
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/ClientHelper.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/ClientHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/ClientHelper.java b/src/main/java/me/shedaniel/rei/client/ClientHelper.java index c753db7a1..5e8ba2585 100644 --- a/src/main/java/me/shedaniel/rei/client/ClientHelper.java +++ b/src/main/java/me/shedaniel/rei/client/ClientHelper.java @@ -91,6 +91,10 @@ public class ClientHelper implements ClientLoaded, ClientModInitializer { } public static void sendDeletePacket() { + if (MinecraftClient.getInstance().interactionManager.hasCreativeInventory()) { + MinecraftClient.getInstance().player.inventory.setCursorStack(ItemStack.EMPTY); + return; + } PacketByteBuf buf = new PacketByteBuf(Unpooled.buffer()); MinecraftClient.getInstance().getNetworkHandler().sendPacket(new CustomPayloadServerPacket(RoughlyEnoughItemsCore.DELETE_ITEMS_PACKET, buf)); } |
