From bd31ea6fd044c62275756291635b144e92749c85 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 26 Nov 2016 18:07:42 +1300 Subject: [PATCH] Fix Vex disguise --- src/me/libraryaddict/disguise/disguisetypes/FlagType.java | 2 +- .../disguise/disguisetypes/watchers/VexWatcher.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } }