Exemplo n.º 1
0
 public static void sendSwitchHeldItemMessage(int heldItemIndex, byte bigCraftable, long whichPlayer)
 {
     if (Game1.IsClient)
     {
         Game1.client.sendMessage(6, new object[]
         {
             bigCraftable,
             (short)heldItemIndex
         });
         return;
     }
     if (Game1.IsServer)
     {
         MultiplayerUtility.broadcastSwitchHeldItem(bigCraftable, (short)heldItemIndex, whichPlayer, Game1.currentLocation.name);
     }
 }