ModificationStation / StationAPI

A general use API for Fabric Loader mods on legacy Minecraft versions.
86 stars 20 forks source link

setBlockStateWithMetadata can cause crash #86

Closed paulevsGitch closed 12 months ago

paulevsGitch commented 1 year ago

Looks like setBlockStateWithMetadata on server can cause a crash:

java.lang.AssertionError: This method was never supposed to be called, as it should have been overriden by a mixin. Something is very broken!
    at net.modificationstation.stationapi.api.util.Util.assertImpl(Util.java:243)
    at net.modificationstation.stationapi.api.world.chunk.StationFlatteningChunk.setBlockStateWithMetadata(StationFlatteningChunk.java:19)
    at net.minecraft.level.Level.setBlockStateWithMetadata(Level.java:3877)
    at net.minecraft.level.Level.setBlockStateWithMetadataWithNotify(Level.java:3883)
    at net.modificationstation.stationapi.impl.client.network.FlattenedClientPlayNetworkHandler.onBlockChange(FlattenedClientPlayNetworkHandler.java:47)
    at net.modificationstation.stationapi.impl.packet.FlattenedBlockChangeS2CPacket.apply(FlattenedBlockChangeS2CPacket.java:66)
    at net.minecraft.server.network.ClientConnection.redirect$zgo000$station-networking-v0$stationapi_ifIdentifiable(ClientConnection.java:522)
    at net.minecraft.server.network.ClientConnection.completeOrTimeOut(ClientConnection.java:291)
    at net.minecraft.network.ClientPlayNetworkHandler.processPackets(ClientPlayNetworkHandler.java:122)
    at net.minecraft.client.level.ClientLevel.processLevel(ClientLevel.java:57)
    at net.minecraft.client.Minecraft.tick(Minecraft.java:1066)
    at net.minecraft.client.Minecraft.run(Minecraft.java:531)
    at java.base/java.lang.Thread.run(Thread.java:833)
Stopping!
mineLdiver commented 12 months ago

Duplicate of #82