Make createDisguise return nothing

This commit is contained in:
Andrew 2013-11-08 04:30:40 +13:00
parent 91dbd07f2a
commit 01f7d2b911

View File

@ -55,9 +55,9 @@ public abstract class Disguise {
@Override @Override
public abstract Disguise clone(); public abstract Disguise clone();
protected Disguise createDisguise(DisguiseType newType, boolean doSounds) { protected void createDisguise(DisguiseType newType, boolean doSounds) {
if (getWatcher() != null) if (getWatcher() != null)
return this; return;
// Set the disguise type // Set the disguise type
disguiseType = newType; disguiseType = newType;
// Set the option to replace the sounds // Set the option to replace the sounds
@ -269,7 +269,6 @@ public abstract class Disguise {
} }
} }
}; };
return this;
} }
/** /**