From 29f59b4f867a14a388779be21e8b51b7bd14e8a7 Mon Sep 17 00:00:00 2001 From: MarioE Date: Thu, 13 Feb 2014 21:01:06 -0500 Subject: [PATCH] Tentative update to 1.2.3 --- TShockAPI/GetDataHandlers.cs | 10 +++++----- TShockAPI/SaveManager.cs | 4 ++-- TShockAPI/TShock.cs | 2 +- TerrariaServerAPI | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 9dc09447..003d64bd 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -79,7 +79,7 @@ namespace TShockAPI /// /// The Tile ID being edited. /// - public byte EditData { get; set; } + public ushort EditData { get; set; } /// /// The EditType. /// (KillTile = 0, PlaceTile = 1, KillWall = 2, PlaceWall = 3, KillTileNoItem = 4, PlaceWire = 5, KillWire = 6) @@ -101,7 +101,7 @@ namespace TShockAPI /// TileEdit - called when a tile is placed or destroyed /// public static HandlerList TileEdit; - private static bool OnTileEdit(TSPlayer ply, int x, int y, EditAction action, EditType editDetail, byte editData, byte style) + private static bool OnTileEdit(TSPlayer ply, int x, int y, EditAction action, EditType editDetail, ushort editData, byte style) { if (TileEdit == null) return false; @@ -1600,7 +1600,7 @@ namespace TShockAPI /// /// Tiles that can be oriented (e.g., beds, chairs, bathtubs, etc). /// - private static byte[] orientableTiles = new byte[] { 15, 79, 90, 105, 128, 137, 139, 171, 207, 209 }; + private static int[] orientableTiles = new int[] { 15, 79, 90, 105, 128, 137, 139, 171, 207, 209 }; private static bool HandleSendTileSquare(GetDataHandlerArgs args) { @@ -1756,7 +1756,7 @@ namespace TShockAPI /// /// Tiles that can be broken without any tools. /// - private static byte[] breakableTiles = new byte[] { 4, 13, 33, 49, 50, 127, 128, 162 }; + private static int[] breakableTiles = new int[] { 4, 13, 33, 49, 50, 127, 128, 162 }; /// /// The maximum place styles for each tile. /// @@ -1774,7 +1774,7 @@ namespace TShockAPI try { - var editData = args.Data.ReadInt8(); + var editData = args.Data.ReadUInt16(); EditType type = (action == EditAction.KillTile || action == EditAction.KillWall || action == EditAction.KillTileNoItem) ? EditType.Fail diff --git a/TShockAPI/SaveManager.cs b/TShockAPI/SaveManager.cs index 3b001a0f..de623e83 100644 --- a/TShockAPI/SaveManager.cs +++ b/TShockAPI/SaveManager.cs @@ -125,10 +125,10 @@ namespace TShockAPI if (task.direct) { OnSaveWorld(new WorldSaveEventArgs()); - WorldGen.realsaveWorld(task.resetTime); + WorldFile.realsaveWorld(task.resetTime); } else - WorldGen.saveWorld(task.resetTime); + WorldFile.saveWorld(task.resetTime); TShock.Utils.Broadcast("World saved.", Color.Yellow); Log.Info(string.Format("World saved at ({0})", Main.worldPathName)); } diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index b453c4f0..32827d00 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1548,7 +1548,7 @@ namespace TShockAPI return false; } - public static bool CheckTilePermission(TSPlayer player, int tileX, int tileY, byte tileType, GetDataHandlers.EditAction actionType) + public static bool CheckTilePermission(TSPlayer player, int tileX, int tileY, ushort tileType, GetDataHandlers.EditAction actionType) { if (!player.Group.HasPermission(Permissions.canbuild)) { diff --git a/TerrariaServerAPI b/TerrariaServerAPI index 0ddd492a..69061acd 160000 --- a/TerrariaServerAPI +++ b/TerrariaServerAPI @@ -1 +1 @@ -Subproject commit 0ddd492aa03e5c97dddbc95b2e605fa2823804ab +Subproject commit 69061acd612172ae6f3aa1d5d9f9e50174e350d3