Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ public boolean activeTick(final Level level, final LocalPlayer player) {
public boolean activeOnMouseMove(final double yaw, final double pitch) {
final double scalar = 0.5 - Math.abs(0.5 - animatedValue) + 0.05;

final PhysicsAssemblerBlockEntity be = (PhysicsAssemblerBlockEntity) SableDistUtil.getClientLevel().getBlockEntity(this.getInteractionPos());

if (be == null) {
if (!(SableDistUtil.getClientLevel().getBlockEntity(this.getInteractionPos()) instanceof PhysicsAssemblerBlockEntity)) {
return false;
}

Expand Down
Loading