9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 03:49:15 +00:00

修复碰撞体积不同步

This commit is contained in:
XiaoMoMi
2025-05-25 22:57:50 +08:00
parent 6326ca5808
commit a679027c6a
14 changed files with 77 additions and 18 deletions

View File

@@ -17,4 +17,9 @@ public class StoneBlockShape implements BlockShape {
public Object getShape(Object thisObj, Object[] args) {
return rawBlockState.getShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
}
@Override
public Object getCollisionShape(Object thisObj, Object[] args) {
return rawBlockState.getCollisionShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
}
}

View File

@@ -17,4 +17,9 @@ public class StoneBlockShape implements BlockShape {
public Object getShape(Object thisObj, Object[] args) {
return rawBlockState.getShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
}
@Override
public Object getCollisionShape(Object thisObj, Object[] args) {
return rawBlockState.getCollisionShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
}
}

View File

@@ -17,4 +17,9 @@ public class StoneBlockShape implements BlockShape {
public Object getShape(Object thisObj, Object[] args) {
return rawBlockState.getShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
}
@Override
public Object getCollisionShape(Object thisObj, Object[] args) {
return rawBlockState.getCollisionShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
}
}