Skip to content

trident error, no animation, no damage and console error #1610

Description

@Nektoo

Spark link

https://spark.lucko.me/tSzaxg8mtc

Expected behavior

the trident will deal damage and an animation will play

Observed/Actual behavior

when using a trident on a dragun there is no animation and damage to entities is not dealt and an error is written to the console

Steps/models to reproduce

image
[12:41:36 ERROR]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundPlayerActionPacket@4634dca8, suppressing error
java.lang.IllegalArgumentException: Bound must be positive
at net.minecraft.world.level.levelgen.BitRandomSource.nextInt(BitRandomSource.java:19) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.world.entity.Entity$RandomRandomSource.nextInt(Entity.java:236) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.Util.getRandom(Util.java:688) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.world.item.TridentItem.releaseUsing(TridentItem.java:141) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.world.item.ItemStack.releaseUsing(ItemStack.java:1048) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.world.entity.LivingEntity.releaseUsingItem(LivingEntity.java:4402) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1932) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:51) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:20) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:55) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:154) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1619) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:207) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:128) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1596) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1589) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:138) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1540) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1550) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1386) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:342) ~[purpur-1.21.3.jar:1.21.3-2340-db09358]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Purpur version

[12:42:48 INFO]: Current Purpur Version: 1.21.3-2340-db09358 (MC: 1.21.3)*

  • You are running the latest version
    Previous: 1.21.3-2337-ca668ab (MC: 1.21.3)

Agreements

  • I am running the latest version of Purpur available from https://purpurmc.org/downloads.
  • I have searched for and ensured there isn't already an open issue regarding this.
  • I ticked all the boxes without actually reading them
  • My version of Minecraft is supported by Purpur.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions