Moved the createDisguise in miscDisguise up to get rid of a error

This commit is contained in:
libraryaddict 2013-11-24 09:01:32 +13:00
parent a97f9b22af
commit bb15a52022

View File

@ -30,6 +30,7 @@ public class MiscDisguise extends Disguise {
}
public MiscDisguise(DisguiseType disguiseType, boolean replaceSounds, int id, int data) {
createDisguise(disguiseType, replaceSounds);
switch (disguiseType) {
// The only disguises which should use a custom data.
case FISHING_HOOK:
@ -58,7 +59,6 @@ public class MiscDisguise extends Disguise {
}
}
this.data = data;
createDisguise(disguiseType, replaceSounds);
switch (getType()) {
case DROPPED_ITEM:
if (id > 0) {