From db7ae627ae9490292b9086295df1e4a5effdafd4 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 5 Dec 2017 02:35:04 -0700 Subject: [PATCH] Move orientable tiles into Bouncer --- TShockAPI/Bouncer.cs | 19 +++++++++++++++++ TShockAPI/GetDataHandlers.cs | 40 ------------------------------------ 2 files changed, 19 insertions(+), 40 deletions(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 41a5f65a..309712c9 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -236,6 +236,25 @@ namespace TShockAPI return; } + /// + /// Tile IDs that can be oriented: + /// Cannon, + /// Chairs, + /// Beds, + /// Bathtubs, + /// Statues, + /// Mannequin, + /// Traps, + /// MusicBoxes, + /// ChristmasTree, + /// WaterFountain, + /// Womannequin, + /// MinecartTrack, + /// WeaponsRack, + /// LunarMonolith, + /// TargetDummy, + /// Campfire + /// private static int[] orientableTiles = new int[] { TileID.Cannon, diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index e9c7ae8a..40eec2c5 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1694,46 +1694,6 @@ namespace TShockAPI return false; } - /// - /// Tile IDs that can be oriented: - /// Cannon, - /// Chairs, - /// Beds, - /// Bathtubs, - /// Statues, - /// Mannequin, - /// Traps, - /// MusicBoxes, - /// ChristmasTree, - /// WaterFountain, - /// Womannequin, - /// MinecartTrack, - /// WeaponsRack, - /// LunarMonolith, - /// TargetDummy, - /// Campfire - /// - private static int[] orientableTiles = new int[] - { - TileID.Cannon, - TileID.Chairs, - TileID.Beds, - TileID.Bathtubs, - TileID.Statues, - TileID.Mannequin, - TileID.Traps, - TileID.MusicBoxes, - TileID.ChristmasTree, - TileID.WaterFountain, - TileID.Womannequin, - TileID.MinecartTrack, - TileID.WeaponsRack, - TileID.ItemFrame, - TileID.LunarMonolith, - TileID.TargetDummy, - TileID.Campfire - }; - private static bool HandleSendTileSquare(GetDataHandlerArgs args) { var player = args.Player;