mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 23:55:10 +00:00
Floor values are set for max health, combat regen, health regen, melee damage, and projectile damage when changing them now.
This commit is contained in:
1 parent
cd5b4c0633
commit
3c1bc30e44
6 files changed
+16
-12
No files matched your search
@@ -81,7 +81,7 @@ public class SubGuiNpcProjectiles extends SubGuiInterface implements ITextfieldL
|
||||
|
||||
public void unFocused(GuiNpcTextField textfield) {
|
||||
if(textfield.id == 1){
|
||||
stats.pDamage = Float.parseFloat(textfield.getText());
|
||||
stats.pDamage = (float)(Math.floor(Float.parseFloat(textfield.getText())));
|
||||
}
|
||||
else if(textfield.id == 2){
|
||||
stats.pImpact = textfield.getInteger();
|
||||
|
||||
Reference in new issue
Block a user