From a1b7556d3a9d1325ed78e614573ae1142b346037 Mon Sep 17 00:00:00 2001 From: Arthri <41360489+Arthri@users.noreply.github.com> Date: Thu, 22 Jul 2021 10:44:17 +0800 Subject: [PATCH] Simplify booster track check --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 71a5e3d0..6548e454 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -346,7 +346,7 @@ namespace TShockAPI } } // Checks if the player is trying to place a booster track facing right - else if (createTile != TileID.MinecartTrack || placeStyle != 2 || args.Player.TPlayer.direction != 1 || style != 3) + else if (createTile != ItemID.BoosterTrack || args.Player.TPlayer.direction != 1 || style != 3) { TShock.Log.ConsoleError("Bouncer / OnTileEdit rejected from (placestyle) {0} {1} {2} placeStyle: {3} expectedStyle: {4}", args.Player.Name, action, editData, style, placeStyle);