Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 02:50:09 +01:00
9ff01b16ab
This will be used by my next commit. But trying to get the build going since CI blew up
33 Zeilen
1.6 KiB
Diff
33 Zeilen
1.6 KiB
Diff
From 89a445c07fdd5030baa8307fd083e376b646867b Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 721bcae..3ba55d7 100644
|
|
--- a/src/main/java/net/minecraft/server/SpawnerCreature.java
|
|
+++ b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
|
@@ -38,6 +38,7 @@ public final class SpawnerCreature {
|
|
// 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 {
|
|
@@ -118,8 +119,10 @@ public final class SpawnerCreature {
|
|
// 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();
|
|
--
|
|
2.7.4
|
|
|