mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #1435
This commit is contained in:
parent
7057e7fa53
commit
0bb8a11cd9
@ -64,6 +64,8 @@
|
|||||||
* Fixed Backpacks being placeable
|
* Fixed Backpacks being placeable
|
||||||
* Fixed wrong file encoding for translations
|
* Fixed wrong file encoding for translations
|
||||||
* Fixed Minecraft recipes not showing correctly
|
* Fixed Minecraft recipes not showing correctly
|
||||||
|
* Fixed #1428
|
||||||
|
* Fixed #1435
|
||||||
|
|
||||||
## Release Candidate 4 (06 Jan 2020)
|
## Release Candidate 4 (06 Jan 2020)
|
||||||
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#4
|
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#4
|
||||||
|
@ -39,6 +39,7 @@ public abstract class SlimefunLocalization extends Localization implements Keyed
|
|||||||
|
|
||||||
public String getResearchName(Player p, NamespacedKey key) {
|
public String getResearchName(Player p, NamespacedKey key) {
|
||||||
Language language = getLanguage(p);
|
Language language = getLanguage(p);
|
||||||
|
if (language == null || language.getResearches() == null) return null;
|
||||||
return language.getResearches().getString(key.getNamespace() + "." + key.getKey());
|
return language.getResearches().getString(key.getNamespace() + "." + key.getKey());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user