mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 19:51:05 +00:00
Allow empty messages
Especially for holograms
This commit is contained in:
parent
edd7608c02
commit
4b2620964c
@ -89,6 +89,9 @@ public class LanguageConfiguration extends FileConfiguration {
|
|||||||
String value = sbValue.toString();
|
String value = sbValue.toString();
|
||||||
|
|
||||||
values.put(key, value);
|
values.put(key, value);
|
||||||
|
} else if (line.split("=").length == 1) {
|
||||||
|
String key = line.split("=")[0];
|
||||||
|
values.put(key, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ public class Hologram {
|
|||||||
|
|
||||||
if (i != this.text.length) {
|
if (i != this.text.length) {
|
||||||
text = this.text[i];
|
text = this.text[i];
|
||||||
if (text == null) continue;
|
if (text == null || text.isEmpty()) continue;
|
||||||
} else {
|
} else {
|
||||||
if (plugin.getShopChestConfig().enable_hologram_interaction) {
|
if (plugin.getShopChestConfig().enable_hologram_interaction) {
|
||||||
loc = location.clone();
|
loc = location.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user