9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 10:59:07 +00:00

fix(fabric): 修复客户端渲染问题

This commit is contained in:
jhqwqmc
2025-03-30 10:18:15 +08:00
parent a820cbc2c2
commit d05cd2011f

View File

@@ -21,11 +21,11 @@ public class RegisterBlocks {
VoxelShape outlineShape, boolean isTransparent,
int canPush) {
AbstractBlock.Settings settings = Block.Settings.create()
.nonOpaque()
.strength(canPush != 0 ? 3600000.0F : -1.0F, 3600000.0F);
if (canPush == 1) settings.pistonBehavior(PistonBehavior.NORMAL);
if (canPush == 2) settings.pistonBehavior(PistonBehavior.PUSH_ONLY);
VoxelShape collisionShape;
if (isTransparent) settings.nonOpaque();
if (canPassThrough) {
collisionShape = VoxelShapes.empty();
settings.noCollision();