Enchantment Bug
xKean opened this issue ยท 1 comments
Describe the bug
What happened to you?
I was enchanting a chunk destroyer when I somehow got some Fortune IV on it. I got curious and investigated.
If you have some high'ish server latency + auto clicker you can easily get Fortune XCIV on it.
This one didn't work, anyways a Fortune 8 is working on it. I didn't test any further. Anyways it requires an enormous amount of energy. This can probably be handled with the same bug for unbreaking tho.
Edit: https://i.imgur.com/AXqOsvk.png <- this can mine a 10x10 Chunk in 4 Minutes
To Reproduce
Steps to reproduce the behavior:
- Place items(any enchantment level, 1 is enough) in the enchantment mover
- Get some high ping
- Autoclick the moving button with a 1ms delay
- https://i.imgur.com/mszcK50.png <- Got this from an Efficiency 5, Unbreaking 3, Fortune 3 pickaxe in SINGLEPLAYER ( almost 0 latency)
Versions
- Minecraft version: [1.18.2]
- Single Player or Multi Player?: [Multiplayer]
- Forge version: [40.1.68]
- QuarryPlus version: [18.14]
- Other mods: [ATM7 Modpack 0.4.29]
In my code, client sends a packet to server which moves the enchantment. The server should sync the enchantment soon, but client can send a new packet before the enchantment is synced. Also, the server doesn't check whether the enchantment can be moved.
I added code to check whether the enchantment can be moved in server side.