We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de56ca8 commit 04f04d8Copy full SHA for 04f04d8
src/main/java/io/github/hsyyid/adminshop/listeners/PlayerInteractBlockListener.java
@@ -107,7 +107,11 @@ else if (shopModifier.isPresent())
107
// TODO: Update this when Sponge supports it
108
// entity.offer(Keys.DIRECTION, location.getBlock().get(Keys.DIRECTION).get());
109
((EntityHanging) entity).updateFacingWithBoundingBox(EnumFacing.byName(location.getBlock().get(Keys.DIRECTION).get().name()));
110
- location.getExtent().spawnEntity(entity, Cause.of(NamedCause.source(player)));
+
111
+ if (((EntityHanging) entity).onValidSurface())
112
+ {
113
+ location.getExtent().spawnEntity(entity, Cause.of(NamedCause.source(player)));
114
+ }
115
}
116
117
0 commit comments