Noclip detection now uses the tile blacklist.
This commit is contained in:
parent
85f1ba6643
commit
96ea583264
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ namespace TShockAPI
|
|||
public static class GetDataHandlers
|
||||
{
|
||||
private static Dictionary<PacketTypes, GetDataHandlerDelegate> GetDataHandlerDelegates;
|
||||
private static bool[] BlacklistTiles;
|
||||
public static bool[] BlacklistTiles;
|
||||
|
||||
public static void InitGetDataHandler()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -819,7 +819,7 @@ namespace TShockAPI
|
|||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue