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:
@@ -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"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user