geforkt von Mirrors/Paper
Fix issue with chests being erased - #322 Fixed
Dieser Commit ist enthalten in:
Ursprung
85df861eda
Commit
c9bf3f3819
@ -567,10 +567,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
if (nbttagcompound.hasKeyOfType("LootTable", 8)) {
|
if (nbttagcompound.hasKeyOfType("LootTable", 8)) {
|
||||||
this.m = new MinecraftKey(nbttagcompound.getString("LootTable"));
|
this.m = new MinecraftKey(nbttagcompound.getString("LootTable"));
|
||||||
this.n = nbttagcompound.getLong("LootTableSeed");
|
this.n = nbttagcompound.getLong("LootTableSeed");
|
||||||
return true;
|
- return true;
|
||||||
|
+ return false; // Paper - always load the items, table may still remain
|
||||||
} else {
|
} else {
|
||||||
- return false;
|
return false;
|
||||||
+ return true; // Paper - always load the items, table may still remain
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -579,12 +579,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
if (this.m != null) {
|
if (this.m != null) {
|
||||||
nbttagcompound.setString("LootTable", this.m.toString());
|
nbttagcompound.setString("LootTable", this.m.toString());
|
||||||
if (this.n != 0L) {
|
if (this.n != 0L) {
|
||||||
@@ -0,0 +0,0 @@ public abstract class TileEntityLootable extends TileEntityContainer implements
|
nbttagcompound.setLong("LootTableSeed", this.n);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
- return true;
|
||||||
|
+ return false; // Paper - always save the items, table may still remain
|
||||||
} else {
|
} else {
|
||||||
- return false;
|
return false;
|
||||||
+ return true; // Paper - always save the items, table may still remain
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren