Suppress unusued warning
This commit is contained in:
parent
0fa73fb409
commit
f16ea4159d
@ -60,16 +60,19 @@ public class OverdriveThatMatters {
|
|||||||
private static final WeakHashMap<Level, ArrayList<Consumer<Level>>> tick_once = new WeakHashMap<>();
|
private static final WeakHashMap<Level, ArrayList<Consumer<Level>>> tick_once = new WeakHashMap<>();
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public void onServerStarting(ServerAboutToStartEvent event) {
|
public void onServerStarting(ServerAboutToStartEvent event) {
|
||||||
tick_until.clear();
|
tick_until.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public void onServerStopping(ServerStoppingEvent event) {
|
public void onServerStopping(ServerStoppingEvent event) {
|
||||||
tick_until.clear();
|
tick_until.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.LOWEST)
|
@SubscribeEvent(priority = EventPriority.LOWEST)
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public void onPreTick(TickEvent.WorldTickEvent event) {
|
public void onPreTick(TickEvent.WorldTickEvent event) {
|
||||||
if (event.phase != TickEvent.Phase.START || event.side != LogicalSide.SERVER)
|
if (event.phase != TickEvent.Phase.START || event.side != LogicalSide.SERVER)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user