Fix CLIENT_WORLD_LOAD on Forge

This commit is contained in:
Max
2021-03-18 15:41:22 +01:00
parent 4168644036
commit dd8c78c448

View File

@@ -118,8 +118,8 @@ public class EventHandlerImplClient {
}
@SubscribeEvent
public static void event(WorldEvent.Save event) {
if (event.getWorld() instanceof ClientLevel) {
public static void event(WorldEvent.Load event) {
if (event.getWorld().isClientSide()) {
ClientLevel world = (ClientLevel) event.getWorld();
ClientLifecycleEvent.CLIENT_WORLD_LOAD.invoker().act(world);
}