Change SOLID pathing types based on dimension, fixes #88

This commit is contained in:
Brady 2018-08-25 14:22:39 -05:00
parent 342bb8616c
commit 871dc98acc
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -133,7 +133,18 @@ public final class ChunkPacker implements Helper {
case AVOID:
return Blocks.LAVA.getDefaultState();
case SOLID:
return Blocks.OBSIDIAN.getDefaultState();
// Dimension solid types
switch (mc.player.dimension) {
case -1:
return Blocks.NETHERRACK.getDefaultState();
case 0:
return Blocks.STONE.getDefaultState();
case 1:
return Blocks.END_STONE.getDefaultState();
}
// The fallback solid type
return Blocks.STONE.getDefaultState();
}
}
return null;