mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 02:42:25 +01:00
Simplify lilypad rotation
This commit is contained in:
parent
101c9b7322
commit
44c95084ab
@ -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 New Issue
Block a user