示例#1
0
        public override void func_20008_a(Packet106 packet106)
        {
            var short1 =
                (Short)field_10_k.get(Integer.valueOf(playerEntity.currentCraftingInventory.windowId));

            if (short1 != null && packet106.shortWindowId == short1.shortValue() &&
                playerEntity.currentCraftingInventory.windowId == packet106.windowId &&
                !playerEntity.currentCraftingInventory.getCanCraft(playerEntity))
            {
                playerEntity.currentCraftingInventory.setCanCraft(playerEntity, true);
            }
        }
示例#2
0
 public override void func_20008_a(Packet106 packet106)
 {
     var short1 =
         (Short) field_10_k.get(Integer.valueOf(playerEntity.currentCraftingInventory.windowId));
     if (short1 != null && packet106.shortWindowId == short1.shortValue() &&
         playerEntity.currentCraftingInventory.windowId == packet106.windowId &&
         !playerEntity.currentCraftingInventory.getCanCraft(playerEntity))
     {
         playerEntity.currentCraftingInventory.setCanCraft(playerEntity, true);
     }
 }