From de22400b3f65365ca00b3d78ad90a8cb856f5182 Mon Sep 17 00:00:00 2001 From: Arthri <41360489+Arthri@users.noreply.github.com> Date: Sun, 25 Jul 2021 14:06:47 +0800 Subject: [PATCH] Biome Torch check is suppose to check for 0 --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 303b5a5b..12772af5 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -337,7 +337,7 @@ namespace TShockAPI { tplayer.UsingBiomeTorches = usingBiomeTorches; } - if (style != biomeTorchStyle) + if (style != TorchID.Torch || style != biomeTorchStyle) { TShock.Log.ConsoleError("Bouncer / OnTileEdit rejected from (placestyle) {0} {1} {2} placeStyle: {3} expectedStyle: 0 or {4}", args.Player.Name, action, editData, style, biomeTorchStyle);