mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
Fixed spawn eggs if natural spawning is disabled
This commit is contained in:
parent
a43cf8833c
commit
c408a82730
@ -200,7 +200,9 @@ public class HybridGen extends PlotGenerator {
|
|||||||
public List<BlockPopulator> getPopulators(final World world) {
|
public List<BlockPopulator> getPopulators(final World world) {
|
||||||
// disabling spawning for this world
|
// disabling spawning for this world
|
||||||
if (!this.plotworld.MOB_SPAWNING) {
|
if (!this.plotworld.MOB_SPAWNING) {
|
||||||
|
if (!this.plotworld.SPAWN_EGGS) {
|
||||||
world.setSpawnFlags(false, false);
|
world.setSpawnFlags(false, false);
|
||||||
|
}
|
||||||
world.setAmbientSpawnLimit(0);
|
world.setAmbientSpawnLimit(0);
|
||||||
world.setAnimalSpawnLimit(0);
|
world.setAnimalSpawnLimit(0);
|
||||||
world.setMonsterSpawnLimit(0);
|
world.setMonsterSpawnLimit(0);
|
||||||
|
@ -43,7 +43,6 @@ public abstract class SquarePlotManager extends GridPlotManager {
|
|||||||
final int size = dpw.PLOT_WIDTH + dpw.ROAD_WIDTH;
|
final int size = dpw.PLOT_WIDTH + dpw.ROAD_WIDTH;
|
||||||
int idx;
|
int idx;
|
||||||
int idz;
|
int idz;
|
||||||
|
|
||||||
if (x < 0) {
|
if (x < 0) {
|
||||||
idx = (x/size);
|
idx = (x/size);
|
||||||
x = size + (x % size);
|
x = size + (x % size);
|
||||||
@ -86,7 +85,6 @@ public abstract class SquarePlotManager extends GridPlotManager {
|
|||||||
int dz;
|
int dz;
|
||||||
int rx;
|
int rx;
|
||||||
int rz;
|
int rz;
|
||||||
|
|
||||||
if (x < 0) {
|
if (x < 0) {
|
||||||
dx = (x/size);
|
dx = (x/size);
|
||||||
rx = size + (x % size);
|
rx = size + (x % size);
|
||||||
|
Loading…
Reference in New Issue
Block a user