From 2e0f3dad8a5e0e491f2af971787ad79c62b46b4e Mon Sep 17 00:00:00 2001 From: Ste3et_C0st Date: Tue, 27 Nov 2018 11:19:02 +0100 Subject: [PATCH] Fix tent3 bed rotation --- src/de/Ste3et_C0st/Furniture/Objects/outdoor/tent_3.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/de/Ste3et_C0st/Furniture/Objects/outdoor/tent_3.java b/src/de/Ste3et_C0st/Furniture/Objects/outdoor/tent_3.java index 40ed7f9..0d44cad 100644 --- a/src/de/Ste3et_C0st/Furniture/Objects/outdoor/tent_3.java +++ b/src/de/Ste3et_C0st/Furniture/Objects/outdoor/tent_3.java @@ -114,13 +114,13 @@ public class tent_3 extends Furniture implements Listener{ fArmorStand as = getManager().createArmorStand(getObjID(), banner1); as.getInventory().setHelmet(banner); as.setPose(new EulerAngle(-1.568, 0, 0), BodyPart.HEAD); - as.setMarker(false); + //as.setMarker(false); aspL.add(as); as = getManager().createArmorStand(getObjID(), banner2); as.getInventory().setHelmet(banner); as.setPose(new EulerAngle(-1.568, 0, 0), BodyPart.HEAD); - as.setMarker(false); + //as.setMarker(false); aspL.add(as); Location sit = getLutil().getCenter(loc); @@ -146,8 +146,8 @@ public class tent_3 extends Furniture implements Listener{ private void setBlock(){ Location sit = getLutil().getCenter(getLocation()); - sit.setYaw(getLutil().FaceToYaw(getBlockFace().getOppositeFace())); - bed = getLutil().setHalfBed(getBlockFace(), getLutil().getRelativ(sit.add(0,-2,0).getBlock().getLocation().add(0,2,0), getBlockFace(), 2D, 0D), Material.RED_BED); + sit.setYaw(getLutil().FaceToYaw(getBlockFace().getOppositeFace()) + 90); + bed = getLutil().setHalfBed(getLutil().yawToFace(sit.getYaw()).getOppositeFace(), getLutil().getRelativ(sit.add(0,-2,0).getBlock().getLocation().add(0,2,0), getBlockFace(), 2D, 0D), Material.RED_BED); getObjID().addBlock(Arrays.asList(bed)); }