Being grabbed at same time as reeling in a ghost leaves stray "grabbed" tag, while failing to be grabbed
Zediax opened this issue ยท 16 comments
Describe the bug
You're gonna hate me but my Flashlight just stopped working x) I went to the Mirror Room next to the Fortune-Telling Room and caught a ghost at the same time another ghost grabbed me and since that, my flashlight don't work anymore
To Reproduce
Steps to reproduce the behavior:
- Go to the 'Mirror Room'.
- Catch a ghost at the same time an other ghost grabs you.
- Flashlight don't work from now on.
Expected behavior
Get hit by the ghost or capture the ghost and get grabbed after the capture scene is done
Map version:
Still 2.2
Minecraft.Java_08-30-2022_21-20-32-589.mp4
Do the interact item and gameboy horror still function?
What's the result of the following commands? (use "/gamerule sendCommandFeedback true" first)
/scoreboard players get @s KnockbackType
/tag @s list
alright the Knockback type is at 0 and i have the following tags "chance-check", "dark_room", "flashlight_off", flashlight_selected" (since i have the flashlight in my hand this one makes sens), "grabbed", high_health_idle, "idle", "joined", loaded_chunks", "played_opening_music" and "seen-room_name_"
I suppose i have to get rid of the "grabbed" tag ?
Doesn't simply right clicking the flashlight turn it on again? "flashlight_off" is given when you turn it off by using it only.
"grabbed" should indeed not be present for you, but, looking at the functions, it only interrupts the "always shine" flashlight type.
If you could describe a little bit better what "the same time" is for you (same frame as struggling animation began? grabbed, and then latching on to the ghost before getting the struggling animation?) that would help resolve that issue; how did the 2 ghosts in question react to the situation?
After you checked the top part, you could just use /tag @s remove grabbed
to get rid of the grabbed tag.
right clicking with the flashlight doesn't do anything no
for the grabbing part i'm not sure if it was the same frame but it was quite close to the exact same time as the ghost with no health left got sucked in the Poltergust
Could you try recreating and recording the issue? That'll help pinpoint the cause.
I see I did put a failsafe for this (getting any other knockback removes the tag), so it was an unusual situation.
Then the cause is
drumroll
Invulnerability frames
The only time you get invulerability, that's not knockback.
1 line fix, again.
Hehe, one of the bug reports I recieved a couple months ago was actually a frame-perfect, 50% chance softlock. That was amazing to see having been triggered.
If you run into anything else, do let me know. :)