mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-5571: Beehive MaxEntities cannot be set back to 3
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
parent
6b39c5d083
commit
416eb5c343
@ -118,15 +118,11 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -275,6 +311,11 @@
|
||||
@@ -275,6 +311,7 @@
|
||||
if (this.x()) {
|
||||
nbttagcompound.set("FlowerPos", GameProfileSerializer.a(this.flowerPos));
|
||||
}
|
||||
+ // CraftBukkit start
|
||||
+ if (this.maxBees != 3) {
|
||||
+ nbttagcompound.setInt("Bukkit.MaxEntities", this.maxBees);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+ nbttagcompound.setInt("Bukkit.MaxEntities", this.maxBees); // CraftBukkit
|
||||
|
||||
return nbttagcompound;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user