Skip to content

Commit 04f04d8

Browse files
committed
missed a spot
1 parent de56ca8 commit 04f04d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/io/github/hsyyid/adminshop/listeners/PlayerInteractBlockListener.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ else if (shopModifier.isPresent())
107107
// TODO: Update this when Sponge supports it
108108
// entity.offer(Keys.DIRECTION, location.getBlock().get(Keys.DIRECTION).get());
109109
((EntityHanging) entity).updateFacingWithBoundingBox(EnumFacing.byName(location.getBlock().get(Keys.DIRECTION).get().name()));
110-
location.getExtent().spawnEntity(entity, Cause.of(NamedCause.source(player)));
110+
111+
if (((EntityHanging) entity).onValidSurface())
112+
{
113+
location.getExtent().spawnEntity(entity, Cause.of(NamedCause.source(player)));
114+
}
111115
}
112116
}
113117

0 commit comments

Comments
 (0)