Fix Vex disguise

This commit is contained in:
libraryaddict 2016-11-26 18:07:42 +13:00
parent bb303ac96b
commit bd31ea6fd0
2 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ public class FlagType<Y> {
public static FlagType<Integer> TNT_FUSE_TICKS = new FlagType<Integer>(TNTWatcher.class, 0, Integer.MAX_VALUE); public static FlagType<Integer> TNT_FUSE_TICKS = new FlagType<Integer>(TNTWatcher.class, 0, Integer.MAX_VALUE);
public static FlagType<Boolean> VEX_ANGRY = new FlagType<Boolean>(VexWatcher.class, 0, false); public static FlagType<Byte> VEX_ANGRY = new FlagType<Byte>(VexWatcher.class, 0, (byte) 0);
public static FlagType<Integer> VILLAGER_PROFESSION = new FlagType<Integer>(VillagerWatcher.class, 0, 0); public static FlagType<Integer> VILLAGER_PROFESSION = new FlagType<Integer>(VillagerWatcher.class, 0, 0);

View File

@ -10,12 +10,12 @@ public class VexWatcher extends InsentientWatcher {
} }
public void setAngry(boolean angry) { public void setAngry(boolean angry) {
setData(FlagType.VEX_ANGRY, angry); setData(FlagType.VEX_ANGRY, (byte) (angry ? 1 : 0));
sendData(FlagType.VEX_ANGRY); sendData(FlagType.VEX_ANGRY);
} }
public boolean isAngry() { public boolean isAngry() {
return getData(FlagType.VEX_ANGRY); return getData(FlagType.VEX_ANGRY) == 1;
} }
} }