Skip to content

Commit

Permalink
Fix nether portal not being lit
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed Sep 29, 2024
1 parent d198abb commit 728543c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/de/cuuky/varo/game/world/generators/PortalGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public PortalGenerator(World world, int xPos, int zPos, int width, int height) {
for (int x = 1; x < width - 1; x++)
XBlock.setType(world.getBlockAt(xPos - offset + x, yPos0 + y, zPos), XMaterial.NETHER_PORTAL, false);

XBlock.setType(world.getBlockAt(xPos - offset, yPos0 + y, zPos), XMaterial.OBSIDIAN);
XBlock.setType(world.getBlockAt(xPos - offset + width - 1, yPos0 + y, zPos), XMaterial.OBSIDIAN);
XBlock.setType(world.getBlockAt(xPos - offset, yPos0 + y, zPos), XMaterial.OBSIDIAN, false);
XBlock.setType(world.getBlockAt(xPos - offset + width - 1, yPos0 + y, zPos), XMaterial.OBSIDIAN, false);
}

for (int x = 0; x < width; x++) {
XBlock.setType(world.getBlockAt(xPos - offset + x, yPos0, zPos), XMaterial.OBSIDIAN);
XBlock.setType(world.getBlockAt(xPos - offset + x, yPos0 + height - 1, zPos), XMaterial.OBSIDIAN);
XBlock.setType(world.getBlockAt(xPos - offset + x, yPos0, zPos), XMaterial.OBSIDIAN, false);
XBlock.setType(world.getBlockAt(xPos - offset + x, yPos0 + height - 1, zPos), XMaterial.OBSIDIAN, false);
}
}, 1);
}
Expand Down

0 comments on commit 728543c

Please sign in to comment.