mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 12:35:15 +01:00
Minor bug fixes
This commit is contained in:
parent
267956ad3c
commit
03dcca451c
@ -8,7 +8,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<artifactId>PlotSquared</artifactId>
|
||||
<version>2.8</version>
|
||||
<version>2.8.1</version>
|
||||
<name>PlotSquared</name>
|
||||
<packaging>jar</packaging>
|
||||
<build>
|
||||
|
@ -223,6 +223,9 @@ public class HybridGen extends PlotGenerator {
|
||||
*/
|
||||
@Override
|
||||
public Location getFixedSpawnLocation(final World world, final Random random) {
|
||||
if (this.plotworld == null) {
|
||||
return new Location(world, 0, 128, 0);
|
||||
}
|
||||
return new Location(world, 0, this.plotworld.ROAD_HEIGHT + 2, 0);
|
||||
}
|
||||
|
||||
|
@ -149,6 +149,7 @@ public class HybridPop extends BlockPopulator {
|
||||
setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
|
||||
}
|
||||
}
|
||||
if (this.plotworld.G_SCH_STATE != null) {
|
||||
HashSet<PlotItem> states = this.plotworld.G_SCH_STATE.get(loc);
|
||||
if (states != null) {
|
||||
for (PlotItem items : states) {
|
||||
@ -156,6 +157,7 @@ public class HybridPop extends BlockPopulator {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
final PlotLoc loc = new PlotLoc((short) (this.X + x), (short) (this.Z + z));
|
||||
final HashMap<Short, Byte> data = ChunkManager.GENERATE_DATA.get(loc);
|
||||
@ -204,6 +206,7 @@ public class HybridPop extends BlockPopulator {
|
||||
setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
|
||||
}
|
||||
}
|
||||
if (this.plotworld.G_SCH_STATE != null) {
|
||||
HashSet<PlotItem> states = this.plotworld.G_SCH_STATE.get(loc);
|
||||
if (states != null) {
|
||||
for (PlotItem items : states) {
|
||||
@ -213,6 +216,7 @@ public class HybridPop extends BlockPopulator {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// wall
|
||||
if (((absX >= this.pathWidthLower) && (absX <= this.pathWidthUpper) && (absZ >= this.pathWidthLower) && (absZ <= this.pathWidthUpper))) {
|
||||
|
Loading…
Reference in New Issue
Block a user