Allow Mob Spawners to be teleposed (default blacklisted) (#671)
This commit is contained in:
parent
134b11f177
commit
f896383fe6
|
@ -160,7 +160,7 @@ public class ConfigHandler
|
|||
|
||||
category = "Teleposer Blacklist";
|
||||
config.addCustomCategoryComment(category, "Block blacklisting");
|
||||
teleposerBlacklisting = config.getStringList("teleposerBlacklist", category, new String[] { "minecraft:bedrock" }, "Stops specified blocks from being teleposed. Put entries on new lines. Valid syntax is:\nmodid:blockname:meta");
|
||||
teleposerBlacklisting = config.getStringList("teleposerBlacklist", category, new String[] { "minecraft:bedrock", "minecraft:mob_spawner" }, "Stops specified blocks from being teleposed. Put entries on new lines. Valid syntax is:\nmodid:blockname:meta");
|
||||
buildBlacklist(teleposerBlacklisting, teleposerBlacklist);
|
||||
|
||||
category = "Transposition Sigil Blacklist";
|
||||
|
|
|
@ -172,9 +172,7 @@ public class TileTeleposer extends TileInventory implements ITickable
|
|||
BlockStack initialStack = BlockStack.getStackFromPos(initialWorld, initialPos);
|
||||
BlockStack finalStack = BlockStack.getStackFromPos(finalWorld, finalPos);
|
||||
|
||||
if ((initialStack.getBlock().equals(Blocks.air) && finalStack.getBlock().equals(Blocks.air)) || (initialStack.getBlock() instanceof BlockMobSpawner || finalStack.getBlock() instanceof BlockMobSpawner ||
|
||||
// caller instanceof TEDemonPortal ? false :
|
||||
initialStack.getBlock() instanceof BlockPortal || finalStack.getBlock() instanceof BlockPortal))
|
||||
if ((initialStack.getBlock().equals(Blocks.air) && finalStack.getBlock().equals(Blocks.air)) || initialStack.getBlock() instanceof BlockPortal || finalStack.getBlock() instanceof BlockPortal)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue