mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix rare bug where if the plot size was less than 15 and the chunk contained an entire plot, it would generate incorrectly
This commit is contained in:
parent
36948ed351
commit
ed2e9a80ed
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ public class HybridGen extends IndependentPlotGenerator {
|
|||
boolean[] insideWallX = new boolean[16];
|
||||
for (short i = 0; i < 16; i++) {
|
||||
short v = (short) (relativeOffsetX + i);
|
||||
if (v >= hybridPlotWorld.SIZE) {
|
||||
while (v >= hybridPlotWorld.SIZE) {
|
||||
v -= hybridPlotWorld.SIZE;
|
||||
}
|
||||
relativeX[i] = v;
|
||||
|
@ -131,7 +131,7 @@ public class HybridGen extends IndependentPlotGenerator {
|
|||
boolean[] insideWallZ = new boolean[16];
|
||||
for (short i = 0; i < 16; i++) {
|
||||
short v = (short) (relativeOffsetZ + i);
|
||||
if (v >= hybridPlotWorld.SIZE) {
|
||||
while (v >= hybridPlotWorld.SIZE) {
|
||||
v -= hybridPlotWorld.SIZE;
|
||||
}
|
||||
relativeZ[i] = v;
|
||||
|
|
Loading…
Reference in a new issue