Modloader
Forge
Minecraft version
1.20.1
Hex Casting version
0.11.3-724c36b
Hexal version
0.3.1-79db73e
Modloader version
Fabric 0.18.0
Modpack info
hexxy4: https://github.com/ChloeTax/hexxy4
The latest.log file
N/A
Issue description
It seems like the opened/closed state of the Mote Nexus is calculated differently on the client vs server.
The client will correctly determine that a Mote Nexus is full and should have a collision box of a full cube, but the server still treats entities on top of the block as closed.
This results in the item on the client side to fall through the block over and over and over again.
Steps to reproduce
Place down a mote nexus, load up at least 1 item, and then drop an item on top.
Other information
Seems like it's probably related to how the server calculates this part?
|
override fun getShape(blockState: BlockState, level: BlockGetter, pos: BlockPos, ctx: CollisionContext): VoxelShape { |
|
val animation = (level.getBlockEntity(pos) as? BlockEntityMediafiedStorage)?.currentAnimation ?: return OPEN_SHAPE |
|
return if (animation is AnimationState.Closing) { |
|
box(0.0, 0.0, 0.0, 16.0, 16.0 - 6.0 * animation.progress.toDouble() / ANIMATION_LENGTH, 16.0) |
|
} else { |
|
box(0.0, 0.0, 0.0, 16.0, 10.0 + 6.0 * animation.progress.toDouble() / ANIMATION_LENGTH, 16.0) |
|
} |
|
} |
Modloader
Forge
Minecraft version
1.20.1
Hex Casting version
0.11.3-724c36b
Hexal version
0.3.1-79db73e
Modloader version
Fabric 0.18.0
Modpack info
hexxy4: https://github.com/ChloeTax/hexxy4
The latest.log file
N/A
Issue description
It seems like the opened/closed state of the Mote Nexus is calculated differently on the client vs server.
The client will correctly determine that a Mote Nexus is full and should have a collision box of a full cube, but the server still treats entities on top of the block as closed.
This results in the item on the client side to fall through the block over and over and over again.
Steps to reproduce
Place down a mote nexus, load up at least 1 item, and then drop an item on top.
Other information
Seems like it's probably related to how the server calculates this part?
Hexal/Common/src/main/java/ram/talia/hexal/common/blocks/BlockMediafiedStorage.kt
Lines 54 to 61 in 79db73e