Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@Firewolf34
Copy link
Contributor

@Firewolf34 Firewolf34 commented Nov 28, 2022

Document the changes in your pull request

Resolves the issue with the gems. The gem array was not having the miner ID card removed from its keys upon redemption, resulting in cascading redemptions. I used list.Remove() proc and it seems to fix the issue. Also, it was removing at the wrong time; when it did manage to remove from the list, it caused the message to null-ref. Resolved.

Tested against latest master locally at 8a405ed

Cannot reproduce with these fixes. Additionally, list appears to have the id card removed properly now, even when 2 different mobs (distinct id cards) are used. I have not tested several gems at once per player, nor have I tested with many players or non-mobs.

Resolves #16617

Changelog

🆑
bugfix: Miners will not be overcompensated for gems anymore
/:cl:

@Yogbot-13 Yogbot-13 added the Fix This fixes an issue. Please link issues in fix PRs label Nov 28, 2022
@Firewolf34
Copy link
Contributor Author

Please review, I am worried I used wrong list proc.

@Simplehorror
Copy link
Contributor

don't use [s] here. looks good though

@MajManatee
Copy link
Contributor

you could put #16617 in the descripton so its linked

@Firewolf34 Firewolf34 changed the title [s] Bugfix for issue #16617 Bugfix for issue #16617 Nov 28, 2022
@warface1234455
Copy link
Contributor

you could put #16617 in the descripton so its linked

do this "Resolves #16617" to automatically close it when this one gets merged

@Firewolf34
Copy link
Contributor Author

do this "Resolves #16617" to automatically close it when this one gets merged

Thank you, that linked it!

@warface1234455
Copy link
Contributor

@warface1234455
Copy link
Contributor

also few ways to link issues that will close them once ur pr is merged: fix, fixes, fixed, resolve, resolves, resolved, close, closes, closed

@Firewolf34
Copy link
Contributor Author

fix this aswell, bug report duplication Pressure valve does not work at all #16870

Thank you for letting me know! This is the wrong PR for this issue, but I have linked this issue to my other PR you were thinking of (it's already merged though)

@Firewolf34 Firewolf34 changed the title Bugfix for issue #16617 Fixes Mining Point Duplication bug, issue #16617 Dec 2, 2022
@JamieD1 JamieD1 merged commit 25e38d0 into yogstation13:master Dec 2, 2022
Yogbot-13 added a commit that referenced this pull request Dec 2, 2022
@Firewolf34 Firewolf34 deleted the firewolf34-bugfix-16617 branch December 4, 2022 03:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Fix This fixes an issue. Please link issues in fix PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite Mining Points Exploit

6 participants