mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-18 05:33:42 +01:00
27 lines
612 B
Java
27 lines
612 B
Java
|
package com.simibubi.create;
|
||
|
|
||
|
import net.minecraftforge.event.TickEvent.Phase;
|
||
|
import net.minecraftforge.event.TickEvent.ServerTickEvent;
|
||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||
|
import net.minecraftforge.fml.event.server.FMLServerStoppingEvent;
|
||
|
|
||
|
@EventBusSubscriber
|
||
|
public class Events {
|
||
|
|
||
|
@SubscribeEvent
|
||
|
public static void onTick(ServerTickEvent event) {
|
||
|
if (event.phase == Phase.START)
|
||
|
return;
|
||
|
|
||
|
Create.tick();
|
||
|
}
|
||
|
|
||
|
@SubscribeEvent
|
||
|
public static void onClose(FMLServerStoppingEvent event) {
|
||
|
Create.shutdown();
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|