Moved the createDisguise in miscDisguise up to get rid of a error
This commit is contained in:
parent
a97f9b22af
commit
bb15a52022
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user