mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 14:33:57 +01:00
Unstable stabilizers
- Fixed clients getting forcibly disconnected due to uninitialized contraption data serialization
This commit is contained in:
parent
df8d2ddbee
commit
b20359808a
@ -24,6 +24,7 @@ import com.simibubi.create.foundation.data.LangMerger;
|
|||||||
import com.simibubi.create.foundation.data.recipe.MechanicalCraftingRecipeGen;
|
import com.simibubi.create.foundation.data.recipe.MechanicalCraftingRecipeGen;
|
||||||
import com.simibubi.create.foundation.data.recipe.ProcessingRecipeGen;
|
import com.simibubi.create.foundation.data.recipe.ProcessingRecipeGen;
|
||||||
import com.simibubi.create.foundation.data.recipe.StandardRecipeGen;
|
import com.simibubi.create.foundation.data.recipe.StandardRecipeGen;
|
||||||
|
import com.simibubi.create.foundation.entity.CreateDataSerializers;
|
||||||
import com.simibubi.create.foundation.networking.AllPackets;
|
import com.simibubi.create.foundation.networking.AllPackets;
|
||||||
import com.simibubi.create.foundation.worldgen.AllWorldFeatures;
|
import com.simibubi.create.foundation.worldgen.AllWorldFeatures;
|
||||||
import com.tterrag.registrate.util.NonNullLazyValue;
|
import com.tterrag.registrate.util.NonNullLazyValue;
|
||||||
@ -92,6 +93,7 @@ public class Create {
|
|||||||
modEventBus.addListener(EventPriority.LOWEST, this::gatherData);
|
modEventBus.addListener(EventPriority.LOWEST, this::gatherData);
|
||||||
|
|
||||||
AllConfigs.register();
|
AllConfigs.register();
|
||||||
|
CreateDataSerializers.register();
|
||||||
random = new Random();
|
random = new Random();
|
||||||
|
|
||||||
DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> CreateClient.addClientListeners(modEventBus));
|
DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> CreateClient.addClientListeners(modEventBus));
|
||||||
|
@ -31,4 +31,6 @@ public class CreateDataSerializers {
|
|||||||
DataSerializers.registerSerializer(OPTIONAL_DIRECTION);
|
DataSerializers.registerSerializer(OPTIONAL_DIRECTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void register() {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user