mirror of
https://github.com/tacigar/maidroid.git
synced 2025-01-10 16:20:19 +01:00
[FIX] Fix spawner
This commit is contained in:
parent
2505e60984
commit
0d09680184
@ -3,8 +3,6 @@
|
|||||||
-- https://github.com/tacigar/maidroid
|
-- https://github.com/tacigar/maidroid
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
maidroid.debug_mode = true
|
|
||||||
|
|
||||||
-- maidroid.animation_frames represents the animation frame data
|
-- maidroid.animation_frames represents the animation frame data
|
||||||
-- of "models/maidroid.b3d".
|
-- of "models/maidroid.b3d".
|
||||||
maidroid.animation_frames = {
|
maidroid.animation_frames = {
|
||||||
@ -352,10 +350,9 @@ function maidroid.register_maidroid(product_name, def)
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- register a spawner for debugging maidroid mods.
|
-- register a spawner for debugging maidroid mods.
|
||||||
if maidroid.debug_mode then
|
|
||||||
minetest.register_craftitem(product_name .. "_spawner", {
|
minetest.register_craftitem(product_name .. "_spawner", {
|
||||||
description = product_name .. " spawner",
|
description = product_name .. " spawner",
|
||||||
inventory_image = "maidroid_debug_spawner.png",
|
inventory_image = def.inventory_image,
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(item_stack, user, pointed_thing)
|
on_use = function(item_stack, user, pointed_thing)
|
||||||
if pointed_thing.above ~= nil then
|
if pointed_thing.above ~= nil then
|
||||||
@ -365,5 +362,4 @@ function maidroid.register_maidroid(product_name, def)
|
|||||||
return nil
|
return nil
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user