1
0
mirror of https://github.com/Sokomine/locks.git synced 2025-07-01 06:20:21 +02:00

fixed bug with newer MT: aborting input with ESC works again

This commit is contained in:
Sokomine
2013-12-17 03:08:09 +01:00
parent f050587a11
commit 1c4a406a93
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,6 @@
-- allow aborting with ESC in newer Versions of MT again
-- a sign
minetest.register_node("locks:shared_locked_sign_wall", {
description = "Shared locked sign",
@ -40,6 +42,11 @@ minetest.register_node("locks:shared_locked_sign_wall", {
end,
on_receive_fields = function(pos, formname, fields, sender)
-- abort if no input has been sent
if( fields.quit ) then
return;
end
-- if the user already has the right to use this and did input text
if( fields.text