Fix base damage for trident (#10948)
This commit is contained in:
		
					parent
					
						
							
								28238907c1
							
						
					
				
			
			
				commit
				
					
						5c5a5fb93c
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -17,6 +17,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 | ||||||
|   |   | ||||||
|      public ThrownTrident(Level world, LivingEntity owner, ItemStack stack) { |      public ThrownTrident(Level world, LivingEntity owner, ItemStack stack) { | ||||||
|          super(EntityType.TRIDENT, owner, world, stack, (ItemStack) null); |          super(EntityType.TRIDENT, owner, world, stack, (ItemStack) null); | ||||||
|  | +        this.setBaseDamage(net.minecraft.world.item.TridentItem.BASE_DAMAGE); // Paper - Allow trident custom damage
 | ||||||
|  |          this.entityData.set(ThrownTrident.ID_LOYALTY, this.getLoyaltyFromItem(stack)); | ||||||
|  |          this.entityData.set(ThrownTrident.ID_FOIL, stack.hasFoil()); | ||||||
|  |      } | ||||||
|  |   | ||||||
|  |      public ThrownTrident(Level world, double x, double y, double z, ItemStack stack) { | ||||||
|  |          super(EntityType.TRIDENT, x, y, z, world, stack, stack); | ||||||
| +        this.setBaseDamage(net.minecraft.world.item.TridentItem.BASE_DAMAGE); // Paper - Allow trident custom damage
 | +        this.setBaseDamage(net.minecraft.world.item.TridentItem.BASE_DAMAGE); // Paper - Allow trident custom damage
 | ||||||
|          this.entityData.set(ThrownTrident.ID_LOYALTY, this.getLoyaltyFromItem(stack)); |          this.entityData.set(ThrownTrident.ID_LOYALTY, this.getLoyaltyFromItem(stack)); | ||||||
|          this.entityData.set(ThrownTrident.ID_FOIL, stack.hasFoil()); |          this.entityData.set(ThrownTrident.ID_FOIL, stack.hasFoil()); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lulu13022002
				Lulu13022002