mirror of
https://github.com/Ste3et/furniture.git
synced 2024-11-23 02:55:52 +01:00
Fix tent3 bed rotation
This commit is contained in:
parent
812672cf8c
commit
2e0f3dad8a
@ -114,13 +114,13 @@ public class tent_3 extends Furniture implements Listener{
|
|||||||
fArmorStand as = getManager().createArmorStand(getObjID(), banner1);
|
fArmorStand as = getManager().createArmorStand(getObjID(), banner1);
|
||||||
as.getInventory().setHelmet(banner);
|
as.getInventory().setHelmet(banner);
|
||||||
as.setPose(new EulerAngle(-1.568, 0, 0), BodyPart.HEAD);
|
as.setPose(new EulerAngle(-1.568, 0, 0), BodyPart.HEAD);
|
||||||
as.setMarker(false);
|
//as.setMarker(false);
|
||||||
aspL.add(as);
|
aspL.add(as);
|
||||||
|
|
||||||
as = getManager().createArmorStand(getObjID(), banner2);
|
as = getManager().createArmorStand(getObjID(), banner2);
|
||||||
as.getInventory().setHelmet(banner);
|
as.getInventory().setHelmet(banner);
|
||||||
as.setPose(new EulerAngle(-1.568, 0, 0), BodyPart.HEAD);
|
as.setPose(new EulerAngle(-1.568, 0, 0), BodyPart.HEAD);
|
||||||
as.setMarker(false);
|
//as.setMarker(false);
|
||||||
aspL.add(as);
|
aspL.add(as);
|
||||||
|
|
||||||
Location sit = getLutil().getCenter(loc);
|
Location sit = getLutil().getCenter(loc);
|
||||||
@ -146,8 +146,8 @@ public class tent_3 extends Furniture implements Listener{
|
|||||||
|
|
||||||
private void setBlock(){
|
private void setBlock(){
|
||||||
Location sit = getLutil().getCenter(getLocation());
|
Location sit = getLutil().getCenter(getLocation());
|
||||||
sit.setYaw(getLutil().FaceToYaw(getBlockFace().getOppositeFace()));
|
sit.setYaw(getLutil().FaceToYaw(getBlockFace().getOppositeFace()) + 90);
|
||||||
bed = getLutil().setHalfBed(getBlockFace(), getLutil().getRelativ(sit.add(0,-2,0).getBlock().getLocation().add(0,2,0), getBlockFace(), 2D, 0D), Material.RED_BED);
|
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));
|
getObjID().addBlock(Arrays.asList(bed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user