Fix allerged null pointer exception
This commit is contained in:
parent
89829bf5c5
commit
b28c6c1336
@ -93,7 +93,11 @@ public class MiscDisguise extends TargetedDisguise
|
||||
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
||||
disguise.setVelocitySent(isVelocitySent());
|
||||
disguise.setModifyBoundingBox(isModifyBoundingBox());
|
||||
|
||||
if (getWatcher() != null)
|
||||
{
|
||||
disguise.setWatcher(getWatcher().clone(disguise));
|
||||
}
|
||||
return disguise;
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,12 @@ public class MobDisguise extends TargetedDisguise
|
||||
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
||||
disguise.setVelocitySent(isVelocitySent());
|
||||
disguise.setModifyBoundingBox(isModifyBoundingBox());
|
||||
|
||||
if (getWatcher() != null)
|
||||
{
|
||||
disguise.setWatcher(getWatcher().clone(disguise));
|
||||
}
|
||||
|
||||
return disguise;
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,11 @@ public class PlayerDisguise extends TargetedDisguise
|
||||
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
||||
disguise.setVelocitySent(isVelocitySent());
|
||||
disguise.setModifyBoundingBox(isModifyBoundingBox());
|
||||
|
||||
if (getWatcher() != null)
|
||||
{
|
||||
disguise.setWatcher(getWatcher().clone(disguise));
|
||||
}
|
||||
|
||||
disguise.createDisguise(DisguiseType.PLAYER);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user