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:
adrido 2013-07-08 17:07:16 +02:00
parent 4d336b5158
commit 9bb4292e60
2 changed files with 4 additions and 4 deletions

View File

@ -290,7 +290,7 @@ function locks:lock_handle_input( pos, formname, fields, player )
end -- of /help
-- 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, _, -, :.");
return;
end

View File

@ -57,7 +57,7 @@ end
for i = 1, 2 do
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",
paramtype2 = "facedir",
drawtype = "nodebox",
@ -90,7 +90,7 @@ for i = 1, 2 do
end
})
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",
paramtype2 = "facedir",
drawtype = "nodebox",
@ -135,7 +135,7 @@ minetest.register_node("locks:door", {
description = "Shared locked Wooden Door",
node_placement_prediction = "",
inventory_image = 'locks_xdoors2_door.png',
wield_image = 'xdoors2_door.png',
wield_image = 'locks_xdoors2_door.png',
stack_max = 1,
on_place = function(itemstack, placer, pointed_thing)
local above = pointed_thing.above