Biome Torch check is suppose to check for 0

This commit is contained in:
Arthri 2021-07-25 14:06:47 +08:00
parent 8004b3f079
commit de22400b3f

View file

@ -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);