From 83fae7e4f3b90462b0a0d6d31a4fa4e18f0616c4 Mon Sep 17 00:00:00 2001 From: k0rd Date: Mon, 12 Mar 2012 19:46:36 -0400 Subject: [PATCH] workaround for buggy noclip detection when player is wet --- TShockAPI/GetDataHandlers.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index bb595a5c..67fa75be 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -472,6 +472,16 @@ namespace TShockAPI { num4 = Main.maxTilesY; } + for (int c = num; c < num2; c++) + { + for (int d = num3; d< num4; d++) + { + if (Main.tile[c,d].liquid != 0) + return false; + } + } + + for (int i = num; i < num2; i++) { for (int j = num3; j < num4; j++)