Add more checkstyle checks

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-01-31 10:08:41 +11:00
parent 540be51514
commit 04c4f1b337
13 changed files with 89 additions and 59 deletions

View File

@@ -120,19 +120,18 @@
}
} else {
return false;
@@ -235,6 +274,11 @@
@@ -234,6 +273,10 @@
if (this.releaseBee(iblockdata, tileentitybeehive_hivebee, (List) null, tileentitybeehive_releasestatus)) {
iterator.remove();
}
+ // CraftBukkit start
+ else {
+ // CraftBukkit start
+ } else {
+ tileentitybeehive_hivebee.ticksInHive = tileentitybeehive_hivebee.minOccupationTicks / 2; // Not strictly Vanilla behaviour in cases where bees cannot spawn but still reasonable
+ }
+ // CraftBukkit end
+ // CraftBukkit end
}
}
}
@@ -276,6 +320,11 @@
@@ -276,6 +319,11 @@
this.flowerPos = GameProfileSerializer.b(nbttagcompound.getCompound("FlowerPos"));
}
@@ -144,7 +143,7 @@
}
@Override
@@ -285,6 +334,7 @@
@@ -285,6 +333,7 @@
if (this.x()) {
nbttagcompound.set("FlowerPos", GameProfileSerializer.a(this.flowerPos));
}