Update dependencies to not tbe transitive, fixes #537
This commit is contained in:
		
							
								
								
									
										9
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -53,7 +53,6 @@ | |||||||
|         </plugins> |         </plugins> | ||||||
|     </build> |     </build> | ||||||
|  |  | ||||||
|  |  | ||||||
|     <properties> |     <properties> | ||||||
|         <build.number>unknown</build.number> |         <build.number>unknown</build.number> | ||||||
|         <timestamp>${maven.build.timestamp}</timestamp> |         <timestamp>${maven.build.timestamp}</timestamp> | ||||||
| @@ -76,26 +75,31 @@ | |||||||
|             <groupId>org.ow2.asm</groupId> |             <groupId>org.ow2.asm</groupId> | ||||||
|             <artifactId>asm</artifactId> |             <artifactId>asm</artifactId> | ||||||
|             <version>${asm.version}</version> |             <version>${asm.version}</version> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.projectlombok</groupId> |             <groupId>org.projectlombok</groupId> | ||||||
|             <artifactId>lombok</artifactId> |             <artifactId>lombok</artifactId> | ||||||
|             <version>${lombok.version}</version> |             <version>${lombok.version}</version> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>com.github.dmulloy2</groupId> |             <groupId>com.github.dmulloy2</groupId> | ||||||
|             <artifactId>ProtocolLib</artifactId> |             <artifactId>ProtocolLib</artifactId> | ||||||
|             <version>${protocollib.version}</version> |             <version>${protocollib.version}</version> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.spigotmc</groupId> |             <groupId>org.spigotmc</groupId> | ||||||
|             <artifactId>spigot-api</artifactId> |             <artifactId>spigot-api</artifactId> | ||||||
|             <version>${spigot.version}</version> |             <version>${spigot.version}</version> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.spigotmc</groupId> |             <groupId>org.spigotmc</groupId> | ||||||
|             <artifactId>spigot</artifactId> |             <artifactId>spigot</artifactId> | ||||||
|             <version>${spigot.version}</version> |             <version>${spigot.version}</version> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <!-- testing --> |         <!-- testing --> | ||||||
|         <dependency> |         <dependency> | ||||||
| @@ -103,17 +107,20 @@ | |||||||
|             <artifactId>junit</artifactId> |             <artifactId>junit</artifactId> | ||||||
|             <version>${junit.version}</version> |             <version>${junit.version}</version> | ||||||
|             <scope>test</scope> |             <scope>test</scope> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>com.destroystokyo.paper</groupId> |             <groupId>com.destroystokyo.paper</groupId> | ||||||
|             <artifactId>paper-api</artifactId> |             <artifactId>paper-api</artifactId> | ||||||
|             <version>${paper-api.version}</version> |             <version>${paper-api.version}</version> | ||||||
|             <scope>provided</scope> |             <scope>provided</scope> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>net.md-5</groupId> |             <groupId>net.md-5</groupId> | ||||||
|             <artifactId>bungeecord-chat</artifactId> |             <artifactId>bungeecord-chat</artifactId> | ||||||
|             <version>${bungeecord-chat.version}</version> |             <version>${bungeecord-chat.version}</version> | ||||||
|  |             <optional>true</optional> | ||||||
|         </dependency> |         </dependency> | ||||||
|     </dependencies> |     </dependencies> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -34,8 +34,9 @@ public class LibsEquipment implements EntityEquipment { | |||||||
|         for (int i = 0; i < equipment.length; i++) { |         for (int i = 0; i < equipment.length; i++) { | ||||||
|             ItemStack item = equipment[i]; |             ItemStack item = equipment[i]; | ||||||
|  |  | ||||||
|             if (item == null) |             if (item == null) { | ||||||
|                 continue; |                 continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|             newEquip.equipment[i] = item.clone(); |             newEquip.equipment[i] = item.clone(); | ||||||
|         } |         } | ||||||
| @@ -48,8 +49,9 @@ public class LibsEquipment implements EntityEquipment { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     public void setItem(EquipmentSlot slot, ItemStack item) { |     public void setItem(EquipmentSlot slot, ItemStack item) { | ||||||
|         if (getItem(slot) == item) |         if (getItem(slot) == item) { | ||||||
|             return; |             return; | ||||||
|  |         } | ||||||
|  |  | ||||||
|         equipment[slot.ordinal()] = item; |         equipment[slot.ordinal()] = item; | ||||||
|         flagWatcher.sendItemStack(slot, item); |         flagWatcher.sendItemStack(slot, item); | ||||||
| @@ -216,4 +218,46 @@ public class LibsEquipment implements EntityEquipment { | |||||||
|     public Entity getHolder() { |     public Entity getHolder() { | ||||||
|         throw new UnsupportedOperationException("This is not supported on a disguise"); |         throw new UnsupportedOperationException("This is not supported on a disguise"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setBoots(ItemStack boots, boolean silent) { | ||||||
|  |         setBoots(boots); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setChestplate(ItemStack chestplate, boolean silent) { | ||||||
|  |         setChestplate(chestplate); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setLeggings(ItemStack leggings, boolean silent) { | ||||||
|  |         setLeggings(leggings); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setHelmet(ItemStack helmet, boolean silent) { | ||||||
|  |         setHelmet(helmet); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setItem(EquipmentSlot equipmentSlot, ItemStack itemStack, boolean silent) { | ||||||
|  |         setItem(equipmentSlot, itemStack); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setItemInMainHand(ItemStack itemStack, boolean silent) { | ||||||
|  |         setItemInMainHand(itemStack); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     @Deprecated | ||||||
|  |     public void setItemInOffHand(ItemStack itemStack, boolean silent) { | ||||||
|  |         setItemInOffHand(itemStack); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user