DragonSurvivalTeam / DragonSurvival

Other
51 stars 39 forks source link

[1.20.1 Bug]: A pic with fortune doesn't drop any dust #577

Closed Iplaymods closed 4 months ago

Iplaymods commented 4 months ago

■ Your Discord ID or other contacts

No response

■ Dragon Survival version

DragonSurvival-1.20.1-27.06.2024-all.jar

■ Forge/Neoforge version

Forge-47.3.0

■ Single game or server?

Single-player (Default)

■ Describe the bug

I was playing, thinking the fortune would give me more dust when drop or increase the chances of it droping. When I tried it I noticed that no ores droped any dust. I tested it with a stack of coal ores and no dust came out.

■ Crash Report File and Logs

No response

seelderr commented 4 months ago

fortuneLevel = tool.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE); silkTouchLevel = tool.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE);

🤦

Fixed in 2150f52

Iplaymods commented 4 months ago

I'm confused, the way the code is worded it looks like it's supposed to not work.

seelderr commented 4 months ago

fortune != silktouch (that was the old code, the commit fixes it)

Iplaymods commented 4 months ago

Is coded not to work? You did explain anything

seelderr commented 4 months ago

fortune will now correctly drop dust, that is all you need to know :)

Iplaymods commented 4 months ago

So it didn't before? Also thank you for responding to me.