1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

Ensure translations aren't loaded in datagen

This commit is contained in:
Eclipse
2025-10-15 07:43:14 +00:00
parent 3dc173e115
commit 94f73dbd06
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ public abstract class RainbowModelProvider extends FabricModelProvider {
byte[] textureBytes = inputTexture.readAllBytes(); byte[] textureBytes = inputTexture.readAllBytes();
output.writeIfNeeded(path, textureBytes, HashCode.fromBytes(textureBytes)); output.writeIfNeeded(path, textureBytes, HashCode.fromBytes(textureBytes));
} catch (IOException exception) { } catch (IOException exception) {
// TODO log LOGGER.error("Failed to save file to {}", path, exception);
} }
}, Util.backgroundExecutor().forName("PackSerializer-saveTexture")); }, Util.backgroundExecutor().forName("PackSerializer-saveTexture"));
} }

View File

@@ -264,7 +264,7 @@ public class BedrockItemMapper {
tags = List.of(); tags = List.of();
} }
GeyserBaseDefinition base = new GeyserBaseDefinition(bedrockIdentifier, Optional.of(stack.getHoverName().getString()), predicateStack, GeyserBaseDefinition base = new GeyserBaseDefinition(bedrockIdentifier, Optional.ofNullable(stack.getHoverName().tryCollapseToString()), predicateStack,
new GeyserBaseDefinition.BedrockOptions(Optional.empty(), true, displayHandheld, calculateProtectionValue(stack), tags), new GeyserBaseDefinition.BedrockOptions(Optional.empty(), true, displayHandheld, calculateProtectionValue(stack), tags),
stack.getComponentsPatch()); stack.getComponentsPatch());
try { try {