Change SOLID pathing types based on dimension, fixes #88
This commit is contained in:
parent
342bb8616c
commit
871dc98acc
@ -133,7 +133,18 @@ public final class ChunkPacker implements Helper {
|
|||||||
case AVOID:
|
case AVOID:
|
||||||
return Blocks.LAVA.getDefaultState();
|
return Blocks.LAVA.getDefaultState();
|
||||||
case SOLID:
|
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;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user