[Legacy] GeckoLib Fabric

[Legacy] GeckoLib Fabric

3M Downloads

setAnimData is broken on Geckolib 4.6

byteManiak opened this issue ยท 0 comments

commented

Hi, I found a bug in Geckolib 4.6. The function below is in GeckoLibNetworking. It calls getClass(), which will return GeckoLibNetworkingFabric, whereas it should instead get the class of the SingletonGeoAnimatable

    default <D> void syncSingletonAnimData(long instanceId, SerializableDataTicket<D> dataTicket, D data, Entity entityToTrack) {
        sendToAllPlayersTrackingEntity(new SingletonDataSyncPacket<>(getClass().toString(), instanceId, dataTicket, data), entityToTrack);
    }

This breaks setAnimData.