mirror of
https://github.com/Sokomine/locks.git
synced 2025-01-09 15:20:21 +01:00
fixed incompatiblity with luaJit
fixed incompatiblity with luaJit changed deprecated tile_images to tiles fixed wield image texture not found
This commit is contained in:
parent
4d336b5158
commit
9bb4292e60
2
init.lua
2
init.lua
@ -290,7 +290,7 @@ function locks:lock_handle_input( pos, formname, fields, player )
|
|||||||
end -- of /help
|
end -- of /help
|
||||||
|
|
||||||
-- sanitize player input
|
-- sanitize player input
|
||||||
if( fields.locks_sent_lock_command:find("[^%a%d%s_\- \/\:]")) then
|
if( fields.locks_sent_lock_command:find("[^%a%d%s%_%-%/%:]")) then --%a is all letters %d is all diggits %s is all space characters
|
||||||
minetest.chat_send_player(name, "Input contains unsupported characters. Allowed: a-z, A-Z, 0-9, _, -, :.");
|
minetest.chat_send_player(name, "Input contains unsupported characters. Allowed: a-z, A-Z, 0-9, _, -, :.");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
@ -57,7 +57,7 @@ end
|
|||||||
|
|
||||||
for i = 1, 2 do
|
for i = 1, 2 do
|
||||||
minetest.register_node("locks:door_top_"..i, {
|
minetest.register_node("locks:door_top_"..i, {
|
||||||
tile_images = {"xdoors2_side.png", "xdoors2_side.png", "xdoors2_top.png", "xdoors2_bottom.png", "xdoors2_top_"..(3 - i)..".png", "xdoors2_top_"..i..".png"},
|
tiles = {"xdoors2_side.png", "xdoors2_side.png", "xdoors2_top.png", "xdoors2_bottom.png", "xdoors2_top_"..(3 - i)..".png", "xdoors2_top_"..i..".png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -90,7 +90,7 @@ for i = 1, 2 do
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
minetest.register_node("locks:door_bottom_"..i, {
|
minetest.register_node("locks:door_bottom_"..i, {
|
||||||
tile_images = {"xdoors2_side.png", "xdoors2_side.png", "xdoors2_top.png", "xdoors2_bottom.png", "locks_xdoors2_bottom_"..(3 - i)..".png", "locks_xdoors2_bottom_"..i..".png"},
|
tiles = {"xdoors2_side.png", "xdoors2_side.png", "xdoors2_top.png", "xdoors2_bottom.png", "locks_xdoors2_bottom_"..(3 - i)..".png", "locks_xdoors2_bottom_"..i..".png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -135,7 +135,7 @@ minetest.register_node("locks:door", {
|
|||||||
description = "Shared locked Wooden Door",
|
description = "Shared locked Wooden Door",
|
||||||
node_placement_prediction = "",
|
node_placement_prediction = "",
|
||||||
inventory_image = 'locks_xdoors2_door.png',
|
inventory_image = 'locks_xdoors2_door.png',
|
||||||
wield_image = 'xdoors2_door.png',
|
wield_image = 'locks_xdoors2_door.png',
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local above = pointed_thing.above
|
local above = pointed_thing.above
|
||||||
|
Loading…
Reference in New Issue
Block a user