Dragon Survival [Forge]

Dragon Survival [Forge]

685k Downloads

[1.20.1 Bug]: Weapon in claw slot deleted when placing same tier weapon from hotbar on an item frame

Jagkros opened this issue · 3 comments

commented

■ Your Discord ID or other contacts

voraciousdragon

■ Dragon Survival version

DragonSurvival-1.20.1-18.07.2024.jar

■ Forge/Neoforge version

Forge 47.3.0

■ Single game or server?

Self-made dedicated server

■ Describe the bug

Steps to reproduce:

  1. Place a weapon in your weapon claw slot.
  2. Place the same tier of weapon in your hotbar.
  3. Right click an item frame with your weapon selected on your hotbar.

If performed correctly, the weapon in your claw slot should have been deleted.
The item from your hotbar should be on the item frame.

A member of mine reported this glitch to me. I thought I'd let the DS team know. Please let me know if you require more information.

■ Crash Report File and Logs

No response

commented

image
image
image

commented

apparently because of this

public static void onToolBreak(final PlayerDestroyItemEvent event) {

the event seems to be called when a player can interact with sth. and the interaction "consumes" the item

not sure what's a good way to do a check (since a copy is passed to the event and itemstack matches would eventually run into the same issue)

maybe that part is not needed anyway anymore due to the tool swap logic?

commented

Fixed in 5633993

Also added a sound when a claw tool is broken