mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
small fixes
This commit is contained in:
parent
b0e7c4fa76
commit
9ed46b87b6
@ -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:
|
||||
|
@ -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; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user