Fix deserialization of EnumDemonWillType
This commit is contained in:
parent
b1335f9e9a
commit
66974716ef
12 changed files with 25 additions and 33 deletions
|
@ -13,6 +13,8 @@ import WayofTime.bloodmagic.api.Constants;
|
|||
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
|
||||
import WayofTime.bloodmagic.api.soul.PlayerDemonWillHandler;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class EntitySentientArrow extends EntityTippedArrow
|
||||
{
|
||||
public double reimbursedAmountOnHit = 0;
|
||||
|
@ -63,7 +65,7 @@ public class EntitySentientArrow extends EntityTippedArrow
|
|||
super.readEntityFromNBT(tag);
|
||||
|
||||
reimbursedAmountOnHit = tag.getDouble("reimbursement");
|
||||
type = EnumDemonWillType.valueOf(tag.getString(Constants.NBT.WILL_TYPE));
|
||||
type = EnumDemonWillType.valueOf(tag.getString(Constants.NBT.WILL_TYPE).toUpperCase(Locale.ENGLISH));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue