mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-27 22:03:04 +00:00
Simplify lilypad rotation
This commit is contained in:
parent
101c9b7322
commit
44c95084ab
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
mcl_core
|
||||
mcl_util
|
||||
mcl_sounds
|
||||
screwdriver?
|
||||
doc?
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
local S = minetest.get_translator("mcl_flowers")
|
||||
|
||||
local mod_screwdriver = minetest.get_modpath("screwdriver") ~= nil
|
||||
|
||||
-- Minetest 0.4 mod: default
|
||||
-- See README.txt for licensing and other information.
|
||||
local init = os.clock()
|
||||
|
@ -361,6 +363,10 @@ minetest.register_abm({
|
|||
end,
|
||||
})
|
||||
|
||||
local on_rotate
|
||||
if mod_screwdriver then
|
||||
on_rotate = screwdriver.rotate_simple
|
||||
end
|
||||
|
||||
-- Lily Pad
|
||||
minetest.register_node("mcl_flowers:waterlily", {
|
||||
|
@ -427,7 +433,8 @@ minetest.register_node("mcl_flowers:waterlily", {
|
|||
end
|
||||
|
||||
return itemstack
|
||||
end
|
||||
end,
|
||||
on_rotate = on_rotate,
|
||||
})
|
||||
|
||||
-- Legacy support
|
||||
|
|
Loading…
Reference in a new issue