Fix Vex disguise
This commit is contained in:
parent
bb303ac96b
commit
bd31ea6fd0
@ -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<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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user