Skip to content

Commit

Permalink
Fix JEI click-craft mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Oct 19, 2023
1 parent a0975ae commit 2704c93
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ private static <T> void backtrack(Object2IntMap<T> currentIngredients, List<Set<

@Inject(method = "<init>(Lio/netty/buffer/ByteBuf;)V", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/nbt/NBTTagCompound;getKeySet()Ljava/util/Set;"
target = "Lnet/minecraft/nbt/NBTTagCompound;getKeySet()Ljava/util/Set;",
remap = true
))
private void ctor(ByteBuf stream, CallbackInfo ci, @Local NBTTagCompound comp) {
if (comp == null) return;
Expand All @@ -119,7 +120,8 @@ private void ctor(ByteBuf stream, CallbackInfo ci, @Local NBTTagCompound comp) {

@Inject(method = "serverPacketData", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/inventory/Container;onCraftMatrixChanged(Lnet/minecraft/inventory/IInventory;)V"
target = "Lnet/minecraft/inventory/Container;onCraftMatrixChanged(Lnet/minecraft/inventory/IInventory;)V",
remap = true
))
public void serverPacketData(INetworkInfo manager, AppEngPacket packet, EntityPlayer player, CallbackInfo ci,
@Local(name = "craftMatrix") IItemHandler craftMatrix,
Expand Down

0 comments on commit 2704c93

Please sign in to comment.