Updated Upstream (CraftBukkit/Spigot)
Doesn't compile yet. CraftBukkit Changes: 90d6905b Repackage NMS 69cf961d Repackage patches Spigot Changes: 79d53c28 Repackage NMS
This commit is contained in:
@@ -19,14 +19,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
for (int i = 0; i < 16; i++) {
|
||||
-
|
||||
- for (Object obj : chunk.entitySlices[i].toArray()) {
|
||||
- if (!(obj instanceof net.minecraft.server.Entity)) {
|
||||
- if (!(obj instanceof net.minecraft.world.entity.Entity)) {
|
||||
+ // Paper start - speed up (was with chunk.entitySlices[i].toArray() and cast checks which costs a lot of performance if called often)
|
||||
+ for (net.minecraft.server.Entity entity : chunk.entitySlices[i]) {
|
||||
+ for (net.minecraft.world.entity.Entity entity : chunk.entitySlices[i]) {
|
||||
+ if (entity == null) {
|
||||
continue;
|
||||
}
|
||||
-
|
||||
- entities[index++] = ((net.minecraft.server.Entity) obj).getBukkitEntity();
|
||||
- entities[index++] = ((net.minecraft.world.entity.Entity) obj).getBukkitEntity();
|
||||
+ entities[index++] = entity.getBukkitEntity();
|
||||
}
|
||||
+ // Paper end
|
||||
|
||||
Reference in New Issue
Block a user