This commit is contained in:
yrsegal@gmail.com 2022-07-02 23:01:59 -04:00
parent 02804df55c
commit 2be0021185

View file

@ -87,7 +87,7 @@ data class CastingContext(
return entitiesGivenMotion.contains(target) return entitiesGivenMotion.contains(target)
} }
fun isVecInWorld(vec: Vec3) = world.isInWorldBounds(BlockPos(vec)) && world.worldBorder.isWithinBounds(vec.x, vec.z) fun isVecInWorld(vec: Vec3) = world.isInWorldBounds(BlockPos(vec)) && world.worldBorder.isWithinBounds(vec.x, vec.z, 0.5)
fun isVecInRange(vec: Vec3): Boolean { fun isVecInRange(vec: Vec3): Boolean {
val sentinel = IXplatAbstractions.INSTANCE.getSentinel(caster) val sentinel = IXplatAbstractions.INSTANCE.getSentinel(caster)