mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Minor bug fixes
This commit is contained in:
		@@ -8,7 +8,7 @@
 | 
				
			|||||||
	    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
						    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
				
			||||||
	</properties>
 | 
						</properties>
 | 
				
			||||||
    <artifactId>PlotSquared</artifactId>
 | 
					    <artifactId>PlotSquared</artifactId>
 | 
				
			||||||
    <version>2.8</version>
 | 
					    <version>2.8.1</version>
 | 
				
			||||||
    <name>PlotSquared</name>
 | 
					    <name>PlotSquared</name>
 | 
				
			||||||
    <packaging>jar</packaging>
 | 
					    <packaging>jar</packaging>
 | 
				
			||||||
    <build>
 | 
					    <build>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -223,6 +223,9 @@ public class HybridGen extends PlotGenerator {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public Location getFixedSpawnLocation(final World world, final Random random) {
 | 
					    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);
 | 
					        return new Location(world, 0, this.plotworld.ROAD_HEIGHT + 2, 0);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -149,10 +149,12 @@ public class HybridPop extends BlockPopulator {
 | 
				
			|||||||
                                    setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
 | 
					                                    setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                            HashSet<PlotItem> states = this.plotworld.G_SCH_STATE.get(loc);
 | 
					                            if (this.plotworld.G_SCH_STATE != null) {
 | 
				
			||||||
                            if (states != null) {
 | 
					                                HashSet<PlotItem> states = this.plotworld.G_SCH_STATE.get(loc);
 | 
				
			||||||
                                for (PlotItem items : states) {
 | 
					                                if (states != null) {
 | 
				
			||||||
                                    BlockManager.manager.addItems(this.plotworld.worldname, items);
 | 
					                                    for (PlotItem items : states) {
 | 
				
			||||||
 | 
					                                        BlockManager.manager.addItems(this.plotworld.worldname, items);
 | 
				
			||||||
 | 
					                                    }
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
@@ -204,12 +206,14 @@ public class HybridPop extends BlockPopulator {
 | 
				
			|||||||
                                setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
 | 
					                                setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        HashSet<PlotItem> states = this.plotworld.G_SCH_STATE.get(loc);
 | 
					                        if (this.plotworld.G_SCH_STATE != null) {
 | 
				
			||||||
                        if (states != null) {
 | 
					                            HashSet<PlotItem> states = this.plotworld.G_SCH_STATE.get(loc);
 | 
				
			||||||
                            for (PlotItem items : states) {
 | 
					                            if (states != null) {
 | 
				
			||||||
                                items.x = this.X + x;
 | 
					                                for (PlotItem items : states) {
 | 
				
			||||||
                                items.z = this.Z + z;
 | 
					                                    items.x = this.X + x;
 | 
				
			||||||
                                BlockManager.manager.addItems(this.plotworld.worldname, items);
 | 
					                                    items.z = this.Z + z;
 | 
				
			||||||
 | 
					                                    BlockManager.manager.addItems(this.plotworld.worldname, items);
 | 
				
			||||||
 | 
					                                }
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user