Fix bad cast in MixinBlockRailBase. Fixes
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.common.bridge.OwnershipTrackedBridge;
-import org.spongepowered.common.bridge.entity.EntityBridge;
import org.spongepowered.common.bridge.world.chunk.ActiveChunkReferantBridge;
import org.spongepowered.common.bridge.world.chunk.ChunkBridge;
import org.spongepowered.common.entity.PlayerTracker;
@@ -54,7 +53,7 @@ private void onMinecartRailPass(World world, net.minecraft.entity.item.EntityMin
Optional<User> notifier = ownerBridge.tracked$getNotifierReference();
Optional<User> owner = ownerBridge.tracked$getOwnerReference();
if (owner.isPresent() || notifier.isPresent()) {
- final Chunk chunk = (Chunk) ((ActiveChunkReferantBridge) this).bridge$getActiveChunk();
+ final Chunk chunk = (Chunk) ((ActiveChunkReferantBridge) cart).bridge$getActiveChunk();
final boolean useActiveChunk = chunk != null && chunk.x == pos.getX() >> 4 && chunk.z == pos.getZ() >> 4;
final ChunkBridge spongeChunk = (ChunkBridge) (useActiveChunk ? chunk : world.getChunk(pos));
if (notifier.isPresent()) {
