Skip to content

Commit

Permalink
switch to using xcompat (#46)
Browse files Browse the repository at this point in the history
* switch to using xcompat

* fix readme

* fix dumb mistake
  • Loading branch information
wsor4035 authored Sep 6, 2024
1 parent 2c891e6 commit 458536d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ jungle trees mod, and big contributions by RealBadAngel.
Brought together into one mod and made L-systems compatible by Vanessa
Ezekowitz.

Dependencies: `default`
Dependencies: `xcompat`
see mod.conf for more
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.functions.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.functions.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 458536d

Please sign in to comment.