Unknown 6 年之前
父节点
当前提交
64e7153424
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/me/shedaniel/rei/client/ClientHelper.java

+ 1 - 1
src/main/java/me/shedaniel/rei/client/ClientHelper.java

@@ -94,7 +94,7 @@ public class ClientHelper implements ClientModInitializer {
     }
     
     public static boolean tryCheatingStack(ItemStack cheatedStack) {
-        if (RoughlyEnoughItemsCore.hasPermissionToUsePackets()) {
+        if (RoughlyEnoughItemsCore.canUsePackets()) {
             try {
                 ClientSidePacketRegistry.INSTANCE.sendToServer(RoughlyEnoughItemsNetwork.CREATE_ITEMS_PACKET, new PacketByteBuf(Unpooled.buffer()).writeItemStack(cheatedStack.copy()));
                 return true;