Skip to content

Commit

Permalink
switch to using xcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Sep 6, 2024
1 parent 2c891e6 commit 9db26ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_defs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ for i in ipairs(moretrees.treelist) do
groups = regular_groups,
sounds = xcompat.sounds.node_sound_default(),
on_place = function(itemstack, placer, pointed_thing)
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
itemstack = xcompat.sapling_on_place(itemstack, placer, pointed_thing,
"moretrees:" ..treename.. "_sapling",
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
Expand Down Expand Up @@ -505,7 +505,7 @@ for i in ipairs(moretrees.treelist) do
sounds = xcompat.sounds.node_sound_default(),
drop = "moretrees:"..treename.."_sapling",
on_place = function(itemstack, placer, pointed_thing)
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
itemstack = xcompat.sapling_on_place(itemstack, placer, pointed_thing,
"moretrees:" ..treename.. "_sapling_ongen",
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
Expand Down

0 comments on commit 9db26ac

Please sign in to comment.