Beispiel #1
0
 public SetItemPacketOut(int spot, ItemStack item)
 {
     UsageType = NetUsageType.GENERAL;
     ID = ServerToClientPacket.SET_ITEM;
     byte[] itemdat = item.ToBytes();
     Data = new byte[4 + itemdat.Length];
     Utilities.IntToBytes(spot).CopyTo(Data, 0);
     itemdat.CopyTo(Data, 4);
 }