Noclip detection now uses the tile blacklist.

This commit is contained in:
Deathmax 2011-08-21 00:27:07 +08:00
parent 85f1ba6643
commit 96ea583264
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ namespace TShockAPI
public static class GetDataHandlers public static class GetDataHandlers
{ {
private static Dictionary<PacketTypes, GetDataHandlerDelegate> GetDataHandlerDelegates; private static Dictionary<PacketTypes, GetDataHandlerDelegate> GetDataHandlerDelegates;
private static bool[] BlacklistTiles; public static bool[] BlacklistTiles;
public static void InitGetDataHandler() public static void InitGetDataHandler()
{ {

View file

@ -819,7 +819,7 @@ namespace TShockAPI
{ {
for (int h = y; h < y + 4; h++) for (int h = y; h < y + 4; h++)
{ {
if (!Main.tile[i, h].active || Main.tile[i, h].type == 2) if (!Main.tile[i, h].active || !GetDataHandlers.BlacklistTiles[Main.tile[i, h].type])
return false; return false;
} }
} }