[1.12.2] game.localize fails on server
AntiBlueQuirk opened this issue ยท 0 comments
Issue Description:
Using game.localize
in a script that runs on the dedicated server causes the script to fail. In previous versions, this worked fine (or at least failed silently). For my use case, I don't actually need game.localize
to run on the server, but this issue means I can't just copy the script from client to server without causing errors. If game.localize
cannot be supported any longer, I recommend adding documentation to it, and adding something like game.isClient
so that the call can wrapped in an if statement.
What happens:
The script fails to execute.
What you expected to happen:
In 1.10, this script functioned without error, although I assume it did not do anything due to being server side.
Script used:
item.addTooltip(game.localize("localization.key"));
Minetweaker.log file:
https://gist.github.com/AntiBlueQuirk/b7665a225019ce85e604e8d69c63f2d5
Affected Versions:
- Minecraft: 1.12.2
- Forge: 14.23.1.2560
- Crafttweaker: 1.12-4.0.12