NPC dialogue closing via buttons is delayed now
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→
There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue command. That would be helpful as a workaround.
Created Issue:
NPC dialogue closing is delayed now
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly.
NPC dialogue closing via buttons is delayed now
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue command. That would be helpful as a workaround.
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue command. That would be helpful as a workaround.
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue command. That would be helpful as a workaround. It would also be helpful to have the commands run by buttons target the actual player that clicked them, but I'm starting to digress...
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue
command. That would be helpful as a workaround.It would also be helpful to have the commands run by buttons target the actual player that clicked them, but I'm starting to digress...The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue command. That would be helpful as a workaround.
It would also be helpful to have the commands run by buttons target the actual player that clicked them, but I'm starting to digress...EDIT: you can do that with @initiator
The bug
In the latest beta, some changes were made to NPC dialogue. It's largely better, but it actually became less responsive. When you click a button, the commands run right away, but the closing of the interface is delayed. If you're quick enough, you can actually click the button multiple times, which could break a system.
How to reproduce
1. Spawn an NPC
2. Edit its interface to have a clickable button
3. Click the button
→There's a brief delay before the screen closes. In 1.17.10.21 and earlier, it closed instantly. Clicking the X still seems to make it close instantly.
There's also no way to close the dialogue with the /dialogue command. That would be helpful as a workaround.
It would also be helpful to have the commands run by buttons target the actual player that clicked them, but I'm starting to digress...EDIT: you can do that with @initiator
Affects 1.19.2
The command can no longer seem to run multiple times, but it's still delayed
Is this still an issue for you?
Can reproduce in 1.21.30