2018-07-04 09:55:24 +02:00
|
|
|
From 29ffb89527cbf4bc5312c099877f79a4808b54dc Mon Sep 17 00:00:00 2001
|
2016-04-15 02:26:57 +02:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Sun, 27 Mar 2016 20:24:05 -0500
|
|
|
|
Subject: [PATCH] Check async, remove unused vars, GH-159
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
2018-07-04 09:55:24 +02:00
|
|
|
index 68a045323..45a83ae99 100644
|
2016-04-15 02:26:57 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/SpawnerCreature.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
2016-07-16 00:36:53 +02:00
|
|
|
@@ -40,6 +40,7 @@ public final class SpawnerCreature {
|
2016-04-15 02:26:57 +02:00
|
|
|
// Spigot end
|
|
|
|
|
|
|
|
public int a(WorldServer worldserver, boolean flag, boolean flag1, boolean flag2) {
|
|
|
|
+ org.spigotmc.AsyncCatcher.catchOp("check for eligible spawn chunks"); // Paper - At least until we figure out what is calling this async
|
|
|
|
if (!flag && !flag1) {
|
|
|
|
return 0;
|
|
|
|
} else {
|
2016-11-17 03:23:38 +01:00
|
|
|
@@ -120,8 +121,10 @@ public final class SpawnerCreature {
|
2016-04-15 02:26:57 +02:00
|
|
|
// CraftBukkit end
|
|
|
|
|
|
|
|
if ((!enumcreaturetype.d() || flag1) && (enumcreaturetype.d() || flag) && (!enumcreaturetype.e() || flag2)) {
|
|
|
|
+ /* Paper start - As far as I can tell neither of these are even used
|
|
|
|
k = worldserver.a(enumcreaturetype.a());
|
|
|
|
int l1 = limit * i / a; // CraftBukkit - use per-world limits
|
|
|
|
+ */ // Paper end
|
|
|
|
|
|
|
|
if ((mobcnt = getEntityCount(worldserver, enumcreaturetype.a())) <= limit * i / 256) {
|
|
|
|
BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition();
|
|
|
|
--
|
2018-07-04 09:55:24 +02:00
|
|
|
2.18.0
|
2016-04-15 02:26:57 +02:00
|
|
|
|