mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 10:23:06 +00:00
Lots of Fixes
This commit is contained in:
1 parent
0ad15e674a
commit
61d08882a9
20 files changed
+55
-27
No files matched your search
@@ -268,7 +268,7 @@ public class SubGuiAbilityConfig extends SubGuiInterface implements ITextfieldLi
|
||||
}
|
||||
|
||||
if (conditions.size() < MAX_CONDITIONS) {
|
||||
sw.addButton(new GuiNpcButton(BTN_ADD_COND, L_LABEL_X, y, 50, 20, "gui.add"));;
|
||||
sw.addButton(new GuiNpcButton(BTN_ADD_COND, L_LABEL_X, y, 50, 20, "gui.add"));
|
||||
y += ROW_H;
|
||||
}
|
||||
|
||||
|
||||
@@ -309,7 +309,7 @@ public class FieldDef {
|
||||
}
|
||||
|
||||
public boolean hasRange() {
|
||||
return min != Float.NEGATIVE_INFINITY || max != Float.POSITIVE_INFINITY;
|
||||
return min != 0 || max != Float.POSITIVE_INFINITY;
|
||||
}
|
||||
|
||||
public Class<? extends Enum<?>> getEnumClass() {
|
||||
|
||||
@@ -49,5 +49,6 @@ public class ScriptEnergyOrb<T extends EntityAbilityOrb> extends ScriptEnergyPro
|
||||
entity.motionY = (dy / len) * entity.getSpeed();
|
||||
entity.motionZ = (dz / len) * entity.getSpeed();
|
||||
}
|
||||
entity.startMoving(null);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user