示例#1
0
 public override bool UseItem(Player player)
 {
     MapNullCheck();
     //if (player.whoAmI == Main.myPlayer)
     if (Main.netMode != NetmodeID.MultiplayerClient)
     {
         map.Open(new Rectangle((int)player.position.X / 16 + 4, (int)player.position.Y / 16 + 4, 50, 50));
     }
     return(true);
 }