Esempio n. 1
0
 public static bool GrowTrees(Tile tile, int x, int y)
 {
     // Grow the tree (server auto sends netmessage and FX)
     if (TileLoader.IsSapling(Main.tile[x, y].type))
     {
         Main.PlaySound(SoundID.Item60, new Point(x, y).ToWorldCoordinates());
         if (Main.netMode != 1 && WorldGen.GrowTree(x, y))
         {
             WorldGen.TreeGrowFXCheck(x, y);
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
 public override bool CanUseItem(Player player)
 {
     return(TileLoader.IsSapling(Main.tile[Player.tileTargetX, Player.tileTargetY].type));
 }