From 93ab0917feccb23243e34f6ef2e0e28c427d9294 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Wed, 29 Apr 2020 20:34:26 -0700 Subject: [PATCH] fix beds being read backwards, fixes #2202 also equip command meta --- .../objects/properties/material/MaterialHalf.java | 2 +- .../denizen/scripts/commands/entity/EquipCommand.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java index 027965f694..848fc5e6b2 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java @@ -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(); diff --git a/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/EquipCommand.java b/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/EquipCommand.java index 0f657576c6..185d10a769 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/EquipCommand.java +++ b/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/EquipCommand.java @@ -56,7 +56,7 @@ public EquipCommand() { // - equip 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 @@ -64,12 +64,12 @@ public EquipCommand() { // - equip 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 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 saddle:saddle // --> @Override