Skip to content

Commit

Permalink
Check if next is scaffolding too
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Sep 20, 2021
1 parent 6a93fb8 commit 798d701
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void run() {
Material in = npc.getEntity().getLocation(dummy).getBlock().getType(),
next = current.next().getType();
current.previous();
if (isClimbable(in)) {
if (isClimbable(in) || isScaffolding(next)) {
if (current.next().getY() > current.previous().getY()) {
npc.getEntity().setVelocity(npc.getEntity().getVelocity().setY(0.3));
if (sneakingForScaffolding) {
Expand Down

0 comments on commit 798d701

Please sign in to comment.