Skip to content

Commit

Permalink
fix: dupe glitch with belts and wand of the forest
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarden-zamir committed Feb 4, 2024
1 parent 247bff4 commit 8c90129
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubejs/client_scripts/handInteractions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ BlockEvents.rightClicked("create:spout", (event) => {
event.cancel();
}
});
if (feature('Fix wand of the forest duplicating belts')) {
BlockEvents.rightClicked("create:belt_connector", (event) => {
if (event.player.handSlots[0].id == "botania:twig_wand") {
event.cancel();
}
})
}
8 changes: 8 additions & 0 deletions kubejs/server_scripts/base/featrues/handInteractions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ BlockEvents.rightClicked("create:spout", (event) => {
event.cancel();
}
});

if (feature('Fix wand of the forest duplicating belts')) {
BlockEvents.rightClicked("create:belt_connector", (event) => {
if (event.player.handSlots[0].id == "botania:twig_wand") {
event.cancel();
}
})
}

0 comments on commit 8c90129

Please sign in to comment.