Skip to content

Commit

Permalink
fix beds being read backwards, fixes #2202
Browse files Browse the repository at this point in the history
also equip command meta
  • Loading branch information
mcmonkey4eva committed Apr 30, 2020
1 parent c6de45e commit 93ab091
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -130,7 +130,7 @@ public static Vector getRelativeBlockVector(BlockData data) {
}
else if (data instanceof Bed) {
BlockFace face = ((Directional) data).getFacing();
if (((Bed) data).getPart() == Bed.Part.FOOT) {
if (((Bed) data).getPart() == Bed.Part.HEAD) {
face = face.getOppositeFace();
}
return face.getDirection();
Expand Down
Expand Up @@ -56,20 +56,20 @@ public EquipCommand() {
// - equip <player> head:stone
//
// @Usage
// Use to equip a iron helmet on two players named Bob and Steve.
// Use to equip an iron helmet on two defined players.
// - equip <[player]>|<[someplayer]> head:iron_helmet
//
// @Usage
// Use to unequip all armor off the player.
// - equip <player> head:air chest:air legs:air boots:air
//
// @Usage
// Use to equip a saddle on a horse.
// - equip e@horse saddle:saddle
// Use to equip a saddle on the horse the player is riding.
// - equip <player.vehicle> saddle:saddle
//
// @Usage
// Use to equip a saddle on a pig.
// - equip e@pig saddle:saddle
// Use to equip a saddle on all nearby pigs.
// - equip <player.location.find.entities[pig].within[10]> saddle:saddle
// -->

@Override
Expand Down

0 comments on commit 93ab091

Please sign in to comment.