Compare commits

...

2 Commits

Author SHA1 Message Date
Spottedleaf
0cbff02a1c Set version to 0.2.0-beta.8 2025-01-27 13:57:16 -08:00
Spottedleaf
ce4ee767fe Correctly retrun true for empty input shapes in EntityGetter#isUnobstructed
Vanilla will return true for empty shapes, so we should as well.
2025-01-27 07:51:49 -08:00
3 changed files with 3 additions and 3 deletions

View File

@@ -21,6 +21,6 @@ junit_version=5.11.3
fabric_lithium_version=t1FlWYl9
neo_lithium_version=iDqQi66g
# Mod Properties
mod_version=0.2.0-SNAPSHOT
mod_version=0.2.0-beta.8
maven_group=ca.spottedleaf.moonrise
archives_base_name=moonrise

View File

@@ -74,7 +74,7 @@ interface EntityGetterMixin {
@Overwrite
default boolean isUnobstructed(final Entity entity, final VoxelShape voxel) {
if (voxel.isEmpty()) {
return false;
return true;
}
final AABB singleAABB = ((CollisionVoxelShape)voxel).moonrise$getSingleAABBRepresentation();

View File

@@ -55,7 +55,7 @@ abstract class LevelMixin implements LevelAccessor, AutoCloseable {
public boolean isUnobstructed(final Entity entity) {
final AABB boundingBox = entity.getBoundingBox();
if (CollisionUtil.isEmpty(boundingBox)) {
return false;
return true;
}
final List<Entity> entities = this.getEntities(