Fix allerged null pointer exception
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user