mirror of
https://github.com/GTNewHorizons/BetterP2P.git
synced 2026-11-21 20:42:32 +00:00
fix npe from incorrectly loaded p2p
This commit is contained in:
1 parent
22175f76cb
commit
6dc083e897
1 file changed
+4
-2
@@ -112,12 +112,14 @@ public class OutlineRenderer {
|
||||
//BufferBuilder buffer = tessellator.getBuffer();
|
||||
|
||||
for (Pair<List<Integer>, EnumFacing> coordinate : coordinates) {
|
||||
List<Integer> pos = coordinate.component1();
|
||||
EnumFacing facing = coordinate.component2();
|
||||
if (pos == null || facing == null || pos.size() != 3)
|
||||
continue;
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(x, y, z);
|
||||
tessellator.startDrawing(GL11.GL_LINES);
|
||||
GL11.glLineWidth(thickness);
|
||||
List<Integer> pos = coordinate.component1();
|
||||
EnumFacing facing = coordinate.component2();
|
||||
tessellator.setTranslation(pos.get(0), pos.get(1), pos.get(2));
|
||||
|
||||
renderHighLightedBlocksOutlineForFacing(tessellator, r, g, b, 255);
|
||||
|
||||
Reference in new issue
Block a user