Suppress unusued warning

This commit is contained in:
DBotThePony 2021-12-02 07:55:20 +07:00
parent 0fa73fb409
commit f16ea4159d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -60,16 +60,19 @@ public class OverdriveThatMatters {
private static final WeakHashMap<Level, ArrayList<Consumer<Level>>> tick_once = new WeakHashMap<>();
@SubscribeEvent(priority = EventPriority.HIGHEST)
@SuppressWarnings("unused")
public void onServerStarting(ServerAboutToStartEvent event) {
tick_until.clear();
}
@SubscribeEvent(priority = EventPriority.HIGHEST)
@SuppressWarnings("unused")
public void onServerStopping(ServerStoppingEvent event) {
tick_until.clear();
}
@SubscribeEvent(priority = EventPriority.LOWEST)
@SuppressWarnings("unused")
public void onPreTick(TickEvent.WorldTickEvent event) {
if (event.phase != TickEvent.Phase.START || event.side != LogicalSide.SERVER)
return;