Various issues with shield blocking and offhand
itsmeow opened this issue ยท 2 comments
Information
- Server Version: Paper-227 1.15.2
- OldCombatMechanics version: 1.7.4
- OldCombatMechanics config file: https://pastebin.com/b9pcF2Pw
Problem Description
- Using shield blocking and disconnecting while doing it causes the shield to remain in inventory
- Because of the above, if you disconnect while blocking and something is in your offhand, you lose it forever
- If the offhand shield breaks (try an OP power bow), it becomes very buggy and doesn't return until the server restarts
To Reproduce
Steps to reproduce the behavior:
-
Get kicked or disconnected while blocking (with something in offhand or without)
-
See Error
-
Use Power 32000 bow on someone blocking with shield
-
Shield breaks
-
Person's shield no longer functions and randomly sputters in and out
Expected Behaviour
Disconnection should cause the shield to be removed and replaced with the original item
Shields should either not break even with powerful means or properly return when broke
Actual Behaviour
Item is replaced when disconnected
Shield randomly appears and disappears rapidly after being broken until server is restarted
User vanished, closing pending further response from @itsmeow
@itsmeow I am unable to reproduce either of these issues, at least in the latest dev builds. They may have been fixed along the way, can you please check with a newer version?