Hazmat suit bug when just entering the server
LOURENT4462 opened this issue · 9 comments
❗ Checklist
- I am using the official english version of Slimefun and did not modify the jar.
- I am using an up to date "DEV" (not "RC") version of Slimefun.
- I am aware that issues related to Slimefun addons need to be reported on their bug trackers and not here.
- I searched for similar open issues and could not find an existing bug report on this.
📍 Description
when a player carries an item that has radiation (the player is already wearing a hazmat suit) then leaves the server and enters again, the player is safe from getting radiation effects, even though he is already wearing a hazmat suit
📑 Reproduction Steps
- Use a hazmat suit and bring Blistering ingot (has radiation)
- Log out of the server then log in again
- When re-entering the server, the player will not be detected if he is wearing a hazmat suit, so the player will suffer from radiation effects and die
💡 Expected Behavior
I hope players who use hazmat suits don't die from radiation from items when they first enter the server
📷 Screenshots / Videos
No response
📜 Server Log
No response
📂 /error-reports/
folder
No response
💻 Server Software
Paper
🎮 Minecraft Version
1.20.x
⭐ Slimefun version
Dev (Build 1123)
🧭 Other plugins
No response
can you please clarify what is happening? your statements are contrary. initially you've said the radiation effect doesn't harm the player then you said the opposite
We should ignore the grace periods on start up/onjoin and fire this directly so this will never be an issue
can you please clarify what is happening? your statements are contrary. initially you've said the radiation effect doesn't harm the player then you said the opposite
When a player joins the server, the player is exposed to radiation from the items he is carrying, even though the player is wearing a hazmat suit.
and after a player dies from radiation then respawns, the new hazmat suit kicks in, so the bug occurs when a new player enters the server
Sorry if my statement above is confusing...
in the config.yml file, what do you have your radiation grace period set to?
enable-radiation: true
radiation-update-interval: 1
radiation-grace-period: 15
I'm unable to repro, I join and have protection without issue.
Debug logs:
[14:22:58 INFO]: [Slimefun] onJoin: PlayerProfile.get
[14:22:58 INFO]: [Slimefun] Hashed armor: [HashedArmorpiece {hash=0,item=null}, HashedArmorpiece {hash=0,item=null}, HashedArmorpiece {hash=0,item=null}, HashedArmorpiece {hash=0,item=null}]
[14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'RUBBER_BOOTS' (Slimefun v4.9-UNOFFICIAL)
[14:22:58 WARN]: Nag author(s): '[The Slimefun 4 Community]' of 'Slimefun v4.9-UNOFFICIAL' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).
[14:22:58 INFO]: [Slimefun] Updated hashed armor pieces
[14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'HAZMAT_LEGGINGS' (Slimefun v4.9-UNOFFICIAL)
[14:22:58 INFO]: [Slimefun] Updated hashed armor pieces
[14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'HAZMAT_CHESTPLATE' (Slimefun v4.9-UNOFFICIAL)
[14:22:58 INFO]: [Slimefun] Updated hashed armor pieces
[14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'SCUBA_HELMET' (Slimefun v4.9-UNOFFICIAL)
[14:22:58 INFO]: [Slimefun] Updated hashed armor pieces
[14:22:58 INFO]: [Slimefun] Player tick, protection against raditation: true
[14:22:59 INFO]: [Slimefun] Player tick, protection against raditation: true
[14:23:00 INFO]: [Slimefun] Player tick, protection against raditation: true
[14:23:01 INFO]: [Slimefun] Player tick, protection against raditation: true
[14:23:02 INFO]: [Slimefun] Player tick, protection against raditation: true
[14:23:03 INFO]: [Slimefun] Player tick, protection against raditation: true
I'm unable to repro, I join and have protection without issue.
Debug logs:
[14:22:58 INFO]: [Slimefun] onJoin: PlayerProfile.get [14:22:58 INFO]: [Slimefun] Hashed armor: [HashedArmorpiece {hash=0,item=null}, HashedArmorpiece {hash=0,item=null}, HashedArmorpiece {hash=0,item=null}, HashedArmorpiece {hash=0,item=null}] [14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'RUBBER_BOOTS' (Slimefun v4.9-UNOFFICIAL) [14:22:58 WARN]: Nag author(s): '[The Slimefun 4 Community]' of 'Slimefun v4.9-UNOFFICIAL' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger). [14:22:58 INFO]: [Slimefun] Updated hashed armor pieces [14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'HAZMAT_LEGGINGS' (Slimefun v4.9-UNOFFICIAL) [14:22:58 INFO]: [Slimefun] Updated hashed armor pieces [14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'HAZMAT_CHESTPLATE' (Slimefun v4.9-UNOFFICIAL) [14:22:58 INFO]: [Slimefun] Updated hashed armor pieces [14:22:58 INFO]: [Slimefun] [STDOUT] Armor piece sf item: HazmatArmorPiece - 'SCUBA_HELMET' (Slimefun v4.9-UNOFFICIAL) [14:22:58 INFO]: [Slimefun] Updated hashed armor pieces [14:22:58 INFO]: [Slimefun] Player tick, protection against raditation: true [14:22:59 INFO]: [Slimefun] Player tick, protection against raditation: true [14:23:00 INFO]: [Slimefun] Player tick, protection against raditation: true [14:23:01 INFO]: [Slimefun] Player tick, protection against raditation: true [14:23:02 INFO]: [Slimefun] Player tick, protection against raditation: true [14:23:03 INFO]: [Slimefun] Player tick, protection against raditation: true
sorry... I just tried it and the hazmat suit is working again... maybe when the bug occurred there were other factors that caused it,
thank you for your time 👍
No worries, if you can figure out what happened and it is an issue let us know :)