forked from mtcontrib/moretrees
switch to using xcompat (#46)
* switch to using xcompat * fix readme * fix dumb mistake
This commit is contained in:
parent
2c891e6c25
commit
458536dbe6
@ -8,4 +8,5 @@ jungle trees mod, and big contributions by RealBadAngel.
|
|||||||
Brought together into one mod and made L-systems compatible by Vanessa
|
Brought together into one mod and made L-systems compatible by Vanessa
|
||||||
Ezekowitz.
|
Ezekowitz.
|
||||||
|
|
||||||
Dependencies: `default`
|
Dependencies: `xcompat`
|
||||||
|
see mod.conf for more
|
||||||
|
@ -445,7 +445,7 @@ for i in ipairs(moretrees.treelist) do
|
|||||||
groups = regular_groups,
|
groups = regular_groups,
|
||||||
sounds = xcompat.sounds.node_sound_default(),
|
sounds = xcompat.sounds.node_sound_default(),
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
itemstack = xcompat.functions.sapling_on_place(itemstack, placer, pointed_thing,
|
||||||
"moretrees:" ..treename.. "_sapling",
|
"moretrees:" ..treename.. "_sapling",
|
||||||
-- minp, maxp to be checked, relative to sapling pos
|
-- minp, maxp to be checked, relative to sapling pos
|
||||||
-- minp_relative.y = 1 because sapling pos has been checked
|
-- minp_relative.y = 1 because sapling pos has been checked
|
||||||
@ -505,7 +505,7 @@ for i in ipairs(moretrees.treelist) do
|
|||||||
sounds = xcompat.sounds.node_sound_default(),
|
sounds = xcompat.sounds.node_sound_default(),
|
||||||
drop = "moretrees:"..treename.."_sapling",
|
drop = "moretrees:"..treename.."_sapling",
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
itemstack = xcompat.functions.sapling_on_place(itemstack, placer, pointed_thing,
|
||||||
"moretrees:" ..treename.. "_sapling_ongen",
|
"moretrees:" ..treename.. "_sapling_ongen",
|
||||||
-- minp, maxp to be checked, relative to sapling pos
|
-- minp, maxp to be checked, relative to sapling pos
|
||||||
-- minp_relative.y = 1 because sapling pos has been checked
|
-- minp_relative.y = 1 because sapling pos has been checked
|
||||||
|
Loading…
Reference in New Issue
Block a user