mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
SPIGOT-5571: Beehive MaxEntities cannot be set back to 3
This commit is contained in:
parent
708be69539
commit
880190573c
@ -118,15 +118,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -275,6 +311,11 @@
|
@@ -275,6 +311,7 @@
|
||||||
if (this.x()) {
|
if (this.x()) {
|
||||||
nbttagcompound.set("FlowerPos", GameProfileSerializer.a(this.flowerPos));
|
nbttagcompound.set("FlowerPos", GameProfileSerializer.a(this.flowerPos));
|
||||||
}
|
}
|
||||||
+ // CraftBukkit start
|
+ nbttagcompound.setInt("Bukkit.MaxEntities", this.maxBees); // CraftBukkit
|
||||||
+ if (this.maxBees != 3) {
|
|
||||||
+ nbttagcompound.setInt("Bukkit.MaxEntities", this.maxBees);
|
|
||||||
+ }
|
|
||||||
+ // CraftBukkit end
|
|
||||||
|
|
||||||
return nbttagcompound;
|
return nbttagcompound;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user