Exemplo n.º 1
0
        public override void HandleTransaction(net.minecraft.src.Packet106Transaction packet106transaction)
        {
            if (this.playerEntity.isDead)
            {
                return;                           // CRAFTBUKKIT
            }
            short short1 = (short)field_10_k[playerEntity.currentCraftingInventory.windowId];

            if (short1 != null && packet106transaction.shortWindowId == short1 && playerEntity
                .currentCraftingInventory.windowId == packet106transaction.windowId && !playerEntity
                .currentCraftingInventory.GetCanCraft(playerEntity))
            {
                playerEntity.currentCraftingInventory.SetCanCraft(playerEntity, true);
            }
        }
Exemplo n.º 2
0
 public virtual void HandleTransaction(net.minecraft.src.Packet106Transaction packet106transaction)
 {
     RegisterPacket(packet106transaction);
 }