small fixes

This commit is contained in:
Gunging 2021-05-27 15:11:35 -04:00
parent b0e7c4fa76
commit 9ed46b87b6
2 changed files with 10 additions and 3 deletions

View File

@ -186,6 +186,13 @@ public class MMOItemReforger {
if (template == null) { MMOItems.print(null, "Could not find template for $r{0} {1}$b. ", "MMOItems Reforger", miTypeName.toString(), miID); mmoItem = null; return; }
Validate.isTrue(meta != null, FriendlyFeedbackProvider.quickForConsole(FFPMMOItems.get(), "Invalid item meta prevented $f{0}$b from updating.", template.getType().toString() + " " + template.getId()));
/*
* Load live.
*
* Must happen before extractStatDataHistory() is called or it will
* generate a null pointer exception.
*/
loadLiveMMOItem();
// Skip all this trash and just regenerate completely
if (options.isRegenerate()) {
@ -202,9 +209,6 @@ public class MMOItemReforger {
restorePreRNGStats(temporalDataHistory, template, determinedItemLevel, true);
return; }
// Load live
loadLiveMMOItem();
/*
* Has to store every stat into itemData, then check each stat of
* the new item to see if they are RNG rolls in order to:

View File

@ -15,4 +15,7 @@ public class MovementSpeed extends AttributeStat {
super("MOVEMENT_SPEED", Material.LEATHER_BOOTS, "Movement Speed",
new String[] { "Movement Speed increase walk speed.", "Default MC walk speed: 0.1" }, Attribute.GENERIC_MOVEMENT_SPEED);
}
@Override
public double multiplyWhenDisplaying() { return 100; }
}