Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Added missing null checks for CONTAINER_LOOT handler
Dieser Commit ist enthalten in:
Ursprung
9ca02680c8
Commit
3fef71db2e
@ -278,8 +278,14 @@ final class StructuredDataConverter {
|
||||
tag.put("BlockEntityTag", data);
|
||||
});
|
||||
register(StructuredDataKey.CONTAINER_LOOT, (data, tag) -> {
|
||||
tag.put("LootTable", data.get("loot_table"));
|
||||
tag.put("LootTableSeed", data.get("loot_table_seed"));
|
||||
final Tag lootTable = data.get("loot_table");
|
||||
if (lootTable != null) {
|
||||
tag.put("LootTable", lootTable);
|
||||
}
|
||||
final Tag lootTableSeed = data.get("loot_table_seed");
|
||||
if (lootTableSeed != null) {
|
||||
tag.put("LootTableSeed", lootTableSeed);
|
||||
}
|
||||
});
|
||||
register(StructuredDataKey.ENCHANTMENT_GLINT_OVERRIDE, (data, tag) -> {
|
||||
if (!data) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren