mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 05:15:11 +00:00
Drowning Compatibility
This commit is contained in:
1 parent
b08f63c4b6
commit
545db302ad
2 files changed
+8
-7
No files matched your search
@@ -30,7 +30,7 @@ public class DataStats {
|
||||
|
||||
public boolean immuneToFire = false;
|
||||
public boolean potionImmune = false;
|
||||
public int drowningType = 1; //0 - Never, 1 - Water, 2 - Air
|
||||
public int drowningType = 1; // 0 - Never, 1 - Water, 2 - Air
|
||||
public boolean burnInSun = false;
|
||||
public boolean noFallDamage = false;
|
||||
public float healthRegen = 1;
|
||||
@@ -164,12 +164,7 @@ public class DataStats {
|
||||
|
||||
immuneToFire = compound.getBoolean("ImmuneToFire");
|
||||
potionImmune = compound.getBoolean("PotionImmune");
|
||||
//canDrown = compound.getBoolean("CanDrown");
|
||||
if (!compound.hasKey("DrowningType") && compound.hasKey("CanDrown")) {
|
||||
drowningType = compound.getBoolean("CanDrown") ? 1 : 0;
|
||||
} else {
|
||||
drowningType = compound.getInteger("DrowningType");
|
||||
}
|
||||
drowningType = compound.getInteger("DrowningType");
|
||||
|
||||
burnInSun = compound.getBoolean("BurnInSun");
|
||||
noFallDamage = compound.getBoolean("NoFallDamage");
|
||||
|
||||
Reference in new issue
Block a user