Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Fix possible NullPointerException in handling CanBreak/CanDestroy items
Dieser Commit ist enthalten in:
Ursprung
1b3191fd02
Commit
da66a01a9a
@ -202,7 +202,7 @@ public abstract class ItemTranslator {
|
|||||||
if (!block.startsWith("minecraft:")) block = "minecraft:" + block;
|
if (!block.startsWith("minecraft:")) block = "minecraft:" + block;
|
||||||
// Get the Bedrock identifier of the item and replace it.
|
// Get the Bedrock identifier of the item and replace it.
|
||||||
// This will unfortunately be limited - for example, beds and banners will be translated weirdly
|
// This will unfortunately be limited - for example, beds and banners will be translated weirdly
|
||||||
canModifyBedrock[i] = BlockRegistries.JAVA_TO_BEDROCK_IDENTIFIERS.get(block).replace("minecraft:", "");
|
canModifyBedrock[i] = BlockRegistries.JAVA_TO_BEDROCK_IDENTIFIERS.getOrDefault(block, block).replace("minecraft:", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return canModifyBedrock;
|
return canModifyBedrock;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren