mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-29 03:49:15 +00:00
修复碰撞体积不同步
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user