Release 10.0.3
This commit is contained in:
		
							
								
								
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -5,7 +5,7 @@ | |||||||
|     <!-- A good example on why temporary names for project identification shouldn't be used --> |     <!-- A good example on why temporary names for project identification shouldn't be used --> | ||||||
|     <groupId>LibsDisguises</groupId> |     <groupId>LibsDisguises</groupId> | ||||||
|     <artifactId>LibsDisguises</artifactId> |     <artifactId>LibsDisguises</artifactId> | ||||||
|     <version>10.0.2-SNAPSHOT</version> |     <version>10.0.3</version> | ||||||
|  |  | ||||||
|     <build> |     <build> | ||||||
|         <defaultGoal>exec:java clean install</defaultGoal> |         <defaultGoal>exec:java clean install</defaultGoal> | ||||||
|   | |||||||
| @@ -158,8 +158,8 @@ public class PacketHandlerSpawn implements IPacketHandler { | |||||||
|             boolean visibleOrNewCompat = playerDisguise.isNameVisible() || DisguiseConfig.isScoreboardDisguiseNames(); |             boolean visibleOrNewCompat = playerDisguise.isNameVisible() || DisguiseConfig.isScoreboardDisguiseNames(); | ||||||
|  |  | ||||||
|             WrappedGameProfile spawnProfile = visibleOrNewCompat ? playerDisguise.getGameProfile() : ReflectionManager |             WrappedGameProfile spawnProfile = visibleOrNewCompat ? playerDisguise.getGameProfile() : ReflectionManager | ||||||
|                     .getGameProfileWithThisSkin(UUID.randomUUID(), |                     .getGameProfileWithThisSkin(UUID.randomUUID(), visibleOrNewCompat ? playerDisguise.getName() : "", | ||||||
|                             visibleOrNewCompat ? playerDisguise.getName() : "", playerDisguise.getGameProfile()); |                             playerDisguise.getGameProfile()); | ||||||
|  |  | ||||||
|             int entityId = disguisedEntity.getEntityId(); |             int entityId = disguisedEntity.getEntityId(); | ||||||
|  |  | ||||||
| @@ -196,10 +196,6 @@ public class PacketHandlerSpawn implements IPacketHandler { | |||||||
|  |  | ||||||
|             boolean selfDisguise = observer == disguisedEntity; |             boolean selfDisguise = observer == disguisedEntity; | ||||||
|  |  | ||||||
|             WrappedDataWatcher newWatcher = DisguiseUtilities |  | ||||||
|                     .createSanitizedDataWatcher(WrappedDataWatcher.getEntityWatcher(disguisedEntity), |  | ||||||
|                             disguise.getWatcher()); |  | ||||||
|  |  | ||||||
|             // Spawn him in front of the observer |             // Spawn him in front of the observer | ||||||
|             StructureModifier<Double> doubles = spawnPlayer.getDoubles(); |             StructureModifier<Double> doubles = spawnPlayer.getDoubles(); | ||||||
|             doubles.write(0, spawnAt.getX()); |             doubles.write(0, spawnAt.getX()); | ||||||
| @@ -212,6 +208,10 @@ public class PacketHandlerSpawn implements IPacketHandler { | |||||||
|  |  | ||||||
|             packets.addPacket(spawnPlayer); |             packets.addPacket(spawnPlayer); | ||||||
|  |  | ||||||
|  |             WrappedDataWatcher newWatcher = DisguiseUtilities | ||||||
|  |                     .createSanitizedDataWatcher(WrappedDataWatcher.getEntityWatcher(disguisedEntity), | ||||||
|  |                             disguise.getWatcher()); | ||||||
|  |  | ||||||
|             if (NmsVersion.v1_15.isSupported()) { |             if (NmsVersion.v1_15.isSupported()) { | ||||||
|                 PacketContainer metaPacket = ProtocolLibrary.getProtocolManager() |                 PacketContainer metaPacket = ProtocolLibrary.getProtocolManager() | ||||||
|                         .createPacketConstructor(PacketType.Play.Server.ENTITY_METADATA, entityId, newWatcher, true) |                         .createPacketConstructor(PacketType.Play.Server.ENTITY_METADATA, entityId, newWatcher, true) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user