Skip to content

Commit

Permalink
Fix stand on block event
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Dec 29, 2024
1 parent 6bf0233 commit dbc0bd6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ fun blockLocation(location: Location, block: Material): Location? {
if (loc.block.type == block) return location
loc.add(0.0, 1.0, 0.0)
if (loc.block.type == block) return loc
loc.add(0.0, -1.0, 0.0)
// We want the block below the player, as we are now at the head of the player, 2 down
loc.add(0.0, -2.0, 0.0)
if (loc.block.type == block) return loc
return null
}
Expand Down

0 comments on commit dbc0bd6

Please sign in to comment.