#1209: Clean up various patches
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
--- a/net/minecraft/server/players/JsonList.java
|
||||
+++ b/net/minecraft/server/players/JsonList.java
|
||||
@@ -54,7 +54,7 @@
|
||||
@@ -1,3 +1,4 @@
|
||||
+// mc-dev import
|
||||
package net.minecraft.server.players;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
@@ -54,7 +55,7 @@
|
||||
@Nullable
|
||||
public V get(K k0) {
|
||||
this.removeExpired();
|
||||
@@ -9,20 +14,7 @@
|
||||
}
|
||||
|
||||
public void remove(K k0) {
|
||||
@@ -76,6 +76,12 @@
|
||||
return (String[]) this.map.keySet().toArray(new String[0]);
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
+ public Collection<V> getValues() {
|
||||
+ return this.map.values();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public boolean isEmpty() {
|
||||
return this.map.size() < 1;
|
||||
}
|
||||
@@ -93,7 +99,7 @@
|
||||
@@ -93,7 +94,7 @@
|
||||
Iterator iterator = this.map.values().iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
@@ -31,7 +23,7 @@
|
||||
|
||||
if (v0.hasExpired()) {
|
||||
list.add(v0.getUser());
|
||||
@@ -103,7 +109,7 @@
|
||||
@@ -103,7 +104,7 @@
|
||||
iterator = list.iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
@@ -40,7 +32,7 @@
|
||||
|
||||
this.map.remove(this.getKeyForUser(k0));
|
||||
}
|
||||
@@ -118,7 +124,7 @@
|
||||
@@ -118,7 +119,7 @@
|
||||
|
||||
public void save() throws IOException {
|
||||
JsonArray jsonarray = new JsonArray();
|
||||
@@ -49,7 +41,7 @@
|
||||
JsonObject jsonobject = new JsonObject();
|
||||
|
||||
Objects.requireNonNull(jsonlistentry);
|
||||
@@ -165,7 +171,7 @@
|
||||
@@ -165,7 +166,7 @@
|
||||
JsonListEntry<K> jsonlistentry = this.createEntry(jsonobject);
|
||||
|
||||
if (jsonlistentry.getUser() != null) {
|
||||
|
||||
Reference in New Issue
Block a user