/** Removes from the whitelist. Used when breaking blocks. */ public static void removeFromWhitelist( Class<? extends TileEntity> te, int dim, int x, int y, int z, Town town) { for (Protection prot : Protections.instance.getProtectionList()) { if (prot.isTileTracked(te)) for (FlagType flagType : prot.getFlagsForTile(te)) { BlockWhitelist bw = town.getBlockWhitelist(dim, x, y, z, flagType); if (bw != null) { bw.delete(); } } } }