Fix entity spawning on block sides. Thanks to @gratimax.