mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 11:53:52 -07:00
@@ -62,45 +62,18 @@
|
||||
}
|
||||
|
||||
iterator.remove();
|
||||
@@ -141,7 +148,7 @@
|
||||
Iterator iterator = list.iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
- NextTickListEntry nextticklistentry = (NextTickListEntry) iterator.next();
|
||||
+ NextTickListEntry<T> nextticklistentry = (NextTickListEntry) iterator.next(); // CraftBukkit - decompile error
|
||||
|
||||
if (structureboundingbox.b((BaseBlockPosition) nextticklistentry.a)) {
|
||||
BlockPosition blockposition1 = nextticklistentry.a.a((BaseBlockPosition) blockposition);
|
||||
@@ -159,7 +166,7 @@
|
||||
Iterator iterator = list.iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
- NextTickListEntry nextticklistentry = (NextTickListEntry) iterator.next();
|
||||
+ NextTickListEntry<T> nextticklistentry = (NextTickListEntry) iterator.next(); // CraftBukkit - decompile error
|
||||
NBTTagCompound nbttagcompound = new NBTTagCompound();
|
||||
|
||||
nbttagcompound.setString("i", ((MinecraftKey) this.b.apply(nextticklistentry.a())).toString());
|
||||
@@ -177,7 +184,7 @@
|
||||
public void a(NBTTagList nbttaglist) {
|
||||
for (int i = 0; i < nbttaglist.size(); ++i) {
|
||||
NBTTagCompound nbttagcompound = nbttaglist.getCompound(i);
|
||||
- Object object = this.c.apply(new MinecraftKey(nbttagcompound.getString("i")));
|
||||
+ T object = this.c.apply(new MinecraftKey(nbttagcompound.getString("i"))); // CraftBukkit - decompile error
|
||||
|
||||
if (object != null) {
|
||||
this.b(new BlockPosition(nbttagcompound.getInt("x"), nbttagcompound.getInt("y"), nbttagcompound.getInt("z")), object, nbttagcompound.getInt("t"), TickListPriority.a(nbttagcompound.getInt("p")));
|
||||
@@ -187,7 +194,7 @@
|
||||
}
|
||||
|
||||
public boolean a(BlockPosition blockposition, T t0) {
|
||||
- return this.nextTickListHash.contains(new NextTickListEntry(blockposition, t0));
|
||||
+ return this.nextTickList.contains(new NextTickListEntry(blockposition, t0)); // CraftBukkit
|
||||
- return this.nextTickListHash.contains(new NextTickListEntry<>(blockposition, t0));
|
||||
+ return this.nextTickList.contains(new NextTickListEntry<>(blockposition, t0)); // CraftBukkit
|
||||
}
|
||||
|
||||
public void a(BlockPosition blockposition, T t0, int i, TickListPriority ticklistpriority) {
|
||||
@@ -209,8 +216,8 @@
|
||||
private void c(BlockPosition blockposition, T t0, int i, TickListPriority ticklistpriority) {
|
||||
NextTickListEntry nextticklistentry = new NextTickListEntry(blockposition, t0, (long) i + this.f.getTime(), ticklistpriority);
|
||||
NextTickListEntry<T> nextticklistentry = new NextTickListEntry<>(blockposition, t0, (long) i + this.f.getTime(), ticklistpriority);
|
||||
|
||||
- if (!this.nextTickListHash.contains(nextticklistentry)) {
|
||||
- this.nextTickListHash.add(nextticklistentry);
|
||||
|
Reference in New Issue
Block a user