Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/nodes/computer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ minetest.register_node("modular_computers:computer", {
minetest.register_on_player_receive_fields(
function(player, formname, fields)
if formname == "modular_computers:computer_formspec" then
if fields.quit then
return
end
-- Obtain the position of the node the player is interacting with
local player_name = player:get_player_name()
local pos = modular_computers.get_context(player_name).computer_pos
Expand Down
Loading