Hey. Great work on this so far. I'm surprised at how flexible it can be even in this early state.
One thing though, do you know of a way to "safely" place/remove tiles from a script (i.e. have an item that does it) in a way that forces the tiles to update and not look bad? I've been trying to find a method I can call but they all seem to be inaccessible.
To place a tile you can use this method from the WorldGen class:
public static bool PlaceTile(int i, int j, int type, bool mute = false, bool forced = false, int plr = -1, int style = 0)
To remove a tile you can use this, also from the WorldGen class:
public static void KillTile(int i, int j, bool fail = false, bool effectOnly = false, bool noItem = false)
Also, if you just want to update a tile, you can use this method:
public static void TileFrame(int i, int j, bool resetFrame = false, bool noBreak = false)
If you just want to update a tile and all 8 surrounding tiles, there's this method:
public static void SquareTileFrame(int i, int j, bool resetFrame = true)
Ever since the update I released earlier today, the WorldGen class is now public.