mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fix italicized potion names
This commit is contained in:
parent
07b4736be3
commit
b3edca5304
@ -1,8 +1,10 @@
|
|||||||
Version 2.2.008
|
Version 2.2.008
|
||||||
Fixed alchemy potions not upgrading correctly (See notes)
|
Fixed alchemy potions not upgrading correctly (This will only affect new potions made, see notes)
|
||||||
|
Fixed a bug where alchemy potions had italicized names
|
||||||
Fixed some exceptions that could happen with parties disabled (thanks IAISI)
|
Fixed some exceptions that could happen with parties disabled (thanks IAISI)
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
|
mcMMO-exclusive Potions (haste, etc) made on version 2.2.007 of mcMMO will not upgrade correctly, you'll just have to make new ones. Sorry for the inconvenience.
|
||||||
Alchemy potions will now be brewed as type "Mundane" behind the scenes, this used to be Uncraftable/Water. This led to some issues. So I've changed it to be Mundane.
|
Alchemy potions will now be brewed as type "Mundane" behind the scenes, this used to be Uncraftable/Water. This led to some issues. So I've changed it to be Mundane.
|
||||||
|
|
||||||
Version 2.2.007
|
Version 2.2.007
|
||||||
|
@ -259,18 +259,17 @@ public class PotionConfig extends LegacyConfigLoader {
|
|||||||
private void setPotionDisplayName(ConfigurationSection section, PotionMeta potionMeta) {
|
private void setPotionDisplayName(ConfigurationSection section, PotionMeta potionMeta) {
|
||||||
String configuredName = section.getString("Name", null);
|
String configuredName = section.getString("Name", null);
|
||||||
if (configuredName != null) {
|
if (configuredName != null) {
|
||||||
potionMeta.setDisplayName(configuredName);
|
potionMeta.setItemName(configuredName);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Potion is water, but has effects
|
|
||||||
if (isPotionTypeWater(potionMeta)
|
|
||||||
&& (PotionUtil.hasBasePotionEffects(potionMeta) || !potionMeta.getCustomEffects().isEmpty())) {
|
|
||||||
// If we don't set a name for these potions, they will simply be called "Water Potion"
|
|
||||||
final String name = section.getName().toUpperCase().replace("_", " ");
|
|
||||||
potionMeta.setDisplayName(name);
|
|
||||||
System.out.println("DEBUG: Renaming potion to " + name);
|
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
// // Potion is water, but has effects
|
||||||
|
// if (isPotionTypeWater(potionMeta)
|
||||||
|
// && (PotionUtil.hasBasePotionEffects(potionMeta) || !potionMeta.getCustomEffects().isEmpty())) {
|
||||||
|
// // If we don't set a name for these potions, they will simply be called "Water Potion"
|
||||||
|
// final String name = section.getName().toUpperCase().replace("_", " ");
|
||||||
|
// potionMeta.setDisplayName(name);
|
||||||
|
// System.out.println("DEBUG: Renaming potion to " + name);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user