mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 09:39:40 -05:00
Relocate the location of ArmorDisplay when selling Block
Former-commit-id: fa628c7d169fb2e79f30363de440d0300e7e75f0 [formerly 092733a151fb966bff6230c206271133b48cee25] Former-commit-id: 59696fa57869df68abe0babdfa1592f9fbd95648
This commit is contained in:
1 parent
c39e50e9a2
commit
cdc52d91eb
1 file changed
+10
-1
@@ -129,7 +129,7 @@ public class ArmorStandDisplayItem implements DisplayItem {
|
||||
}
|
||||
Location asloc = this.shop.getLocation().clone();
|
||||
Util.debugLog("containerBlockFace " + containerBlockFace);
|
||||
if(this.originalItemStack.getType().isBlock()){
|
||||
if (this.originalItemStack.getType().isBlock()) {
|
||||
asloc.add(0, 1, 0);
|
||||
}
|
||||
switch (containerBlockFace) {
|
||||
@@ -137,6 +137,8 @@ public class ArmorStandDisplayItem implements DisplayItem {
|
||||
if (Util.isTool(this.originalItemStack.getType())) {
|
||||
asloc.setYaw(90);
|
||||
asloc.add(0.9, -0.4, 1);
|
||||
} else if (originalItemStack.getType().isBlock()) {
|
||||
asloc.add(0.87, -0.4, 0.2);
|
||||
} else {
|
||||
asloc.setYaw(0);
|
||||
asloc.add(0.9, -0.4, 0);
|
||||
@@ -145,6 +147,8 @@ public class ArmorStandDisplayItem implements DisplayItem {
|
||||
case WEST:
|
||||
if (Util.isTool(this.originalItemStack.getType())) {
|
||||
asloc.add(0.9, -0.4, 0);
|
||||
} else if (originalItemStack.getType().isBlock()) {
|
||||
asloc.add(0.85, -0.4, 0.15);
|
||||
} else {
|
||||
asloc.setYaw(-90);
|
||||
asloc.add(-0.1, -0.4, 0.15);
|
||||
@@ -153,6 +157,9 @@ public class ArmorStandDisplayItem implements DisplayItem {
|
||||
case EAST:
|
||||
if (Util.isTool(this.originalItemStack.getType())) {
|
||||
asloc.add(0.9, -0.4, 0);
|
||||
} else if (originalItemStack.getType().isBlock()) {
|
||||
asloc.setYaw(-90);
|
||||
asloc.add(0.15, -0.4, 0.1);
|
||||
} else {
|
||||
asloc.setYaw(-90);
|
||||
asloc.add(0, -0.4, 0.1);
|
||||
@@ -162,6 +169,8 @@ public class ArmorStandDisplayItem implements DisplayItem {
|
||||
if (Util.isTool(this.originalItemStack.getType())) {
|
||||
asloc.setYaw(90);
|
||||
asloc.add(1, -0.4, 1);
|
||||
} else if (originalItemStack.getType().isBlock()) {
|
||||
asloc.add(0.85, -0.4, 0.1);
|
||||
} else {
|
||||
asloc.add(0.9, -0.4, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user