Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 08:30:10 +01:00
Fix npe in mapping loading
Dieser Commit ist enthalten in:
Ursprung
b8dde25f3a
Commit
6ab2e2f0b2
@ -67,9 +67,10 @@ public class VBMappingDataLoader {
|
|||||||
String diffValue = diffValueJson != null ? diffValueJson.getAsString() : null;
|
String diffValue = diffValueJson != null ? diffValueJson.getAsString() : null;
|
||||||
|
|
||||||
int dataIndex;
|
int dataIndex;
|
||||||
if (diffValue == null && (dataIndex = key.indexOf('[')) != -1) {
|
if (diffValue == null && (dataIndex = key.indexOf('[')) != -1
|
||||||
|
&& (diffValueJson = diffIdentifiers.getAsJsonPrimitive(key.substring(0, dataIndex))) != null) {
|
||||||
// Check for wildcard mappings
|
// Check for wildcard mappings
|
||||||
diffValue = diffIdentifiers.getAsJsonPrimitive(key.substring(0, dataIndex)).getAsString();
|
diffValue = diffValueJson.getAsString();
|
||||||
|
|
||||||
// Keep original properties if value ends with [
|
// Keep original properties if value ends with [
|
||||||
if (diffValue.endsWith("[")) {
|
if (diffValue.endsWith("[")) {
|
||||||
|
@ -351,6 +351,7 @@
|
|||||||
"minecraft:diorite_slab": "minecraft:quartz_slab[",
|
"minecraft:diorite_slab": "minecraft:quartz_slab[",
|
||||||
"minecraft:brick_wall": "minecraft:cobblestone_wall[",
|
"minecraft:brick_wall": "minecraft:cobblestone_wall[",
|
||||||
"minecraft:prismarine_wall": "minecraft:cobblestone_wall[",
|
"minecraft:prismarine_wall": "minecraft:cobblestone_wall[",
|
||||||
|
"minecraft:sandstone_wall": "minecraft:cobblestone_wall[",
|
||||||
"minecraft:red_sandstone_wall": "minecraft:cobblestone_wall[",
|
"minecraft:red_sandstone_wall": "minecraft:cobblestone_wall[",
|
||||||
"minecraft:mossy_stone_brick_wall": "minecraft:mossy_cobblestone_wall[",
|
"minecraft:mossy_stone_brick_wall": "minecraft:mossy_cobblestone_wall[",
|
||||||
"minecraft:granite_wall": "minecraft:cobblestone_wall[",
|
"minecraft:granite_wall": "minecraft:cobblestone_wall[",
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren