diff --git a/src/me/libraryaddict/disguise/disguisetypes/FlagType.java b/src/me/libraryaddict/disguise/disguisetypes/FlagType.java index 0d5530cb..b1929864 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/FlagType.java +++ b/src/me/libraryaddict/disguise/disguisetypes/FlagType.java @@ -274,7 +274,7 @@ public class FlagType { public static FlagType TNT_FUSE_TICKS = new FlagType(TNTWatcher.class, 0, Integer.MAX_VALUE); - public static FlagType VEX_ANGRY = new FlagType(VexWatcher.class, 0, false); + public static FlagType VEX_ANGRY = new FlagType(VexWatcher.class, 0, (byte) 0); public static FlagType VILLAGER_PROFESSION = new FlagType(VillagerWatcher.class, 0, 0); diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/VexWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/VexWatcher.java index e1e2341f..398bdb43 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/VexWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/VexWatcher.java @@ -10,12 +10,12 @@ public class VexWatcher extends InsentientWatcher { } public void setAngry(boolean angry) { - setData(FlagType.VEX_ANGRY, angry); + setData(FlagType.VEX_ANGRY, (byte) (angry ? 1 : 0)); sendData(FlagType.VEX_ANGRY); } public boolean isAngry() { - return getData(FlagType.VEX_ANGRY); + return getData(FlagType.VEX_ANGRY) == 1; } }