Fix Snowman Watcher with bad method name

This commit is contained in:
libraryaddict 2017-02-07 06:02:03 +13:00
parent d84ec1fd2c
commit ad6e67569d
2 changed files with 8 additions and 12 deletions

View File

@ -253,7 +253,7 @@ public class FlagType<Y> {
public static FlagType<Integer> SLIME_SIZE = new FlagType<Integer>(SlimeWatcher.class, 0, 0); public static FlagType<Integer> SLIME_SIZE = new FlagType<Integer>(SlimeWatcher.class, 0, 0);
public static FlagType<Byte> SNOWMAN_HAT = new FlagType<Byte>(SnowmanWatcher.class, 0, (byte) 0); public static FlagType<Byte> SNOWMAN_DERP = new FlagType<Byte>(SnowmanWatcher.class, 0, (byte) 0);
public static FlagType<Byte> SPIDER_CLIMB = new FlagType<Byte>(SpiderWatcher.class, 0, (byte) 0); public static FlagType<Byte> SPIDER_CLIMB = new FlagType<Byte>(SpiderWatcher.class, 0, (byte) 0);

View File

@ -3,21 +3,17 @@ package me.libraryaddict.disguise.disguisetypes.watchers;
import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.Disguise;
import me.libraryaddict.disguise.disguisetypes.FlagType; import me.libraryaddict.disguise.disguisetypes.FlagType;
public class SnowmanWatcher extends InsentientWatcher public class SnowmanWatcher extends InsentientWatcher {
{ public SnowmanWatcher(Disguise disguise) {
public SnowmanWatcher(Disguise disguise)
{
super(disguise); super(disguise);
} }
public void setHat(boolean hat) public void setDerp(boolean derp) {
{ setData(FlagType.SNOWMAN_DERP, (byte) (derp ? 0 : 16));
setData(FlagType.SNOWMAN_HAT, (byte) (hat ? 0 : 16)); sendData(FlagType.SNOWMAN_DERP);
sendData(FlagType.SNOWMAN_HAT);
} }
public boolean isHat() public boolean isDerp() {
{ return getData(FlagType.SNOWMAN_DERP) == 0;
return getData(FlagType.SNOWMAN_HAT) == 0;
} }
} }