Skip to content

Commit cf49131

Browse files
Fix escape glitch
1 parent a8c1dae commit cf49131

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/nodes/computer.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ minetest.register_node("modular_computers:computer", {
7474
minetest.register_on_player_receive_fields(
7575
function(player, formname, fields)
7676
if formname == "modular_computers:computer_formspec" then
77+
if fields.quit then
78+
return
79+
end
7780
-- Obtain the position of the node the player is interacting with
7881
local player_name = player:get_player_name()
7982
local pos = modular_computers.get_context(player_name).computer_pos

0 commit comments

Comments
 (0)