small changes
This commit is contained in:
parent
ce6e8c79b2
commit
f4d48bfdf1
3 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,6 @@ public class WaveTiming {
|
|||
final int roundTime = timer.roundTime();
|
||||
final int[] auditory = ZombiesUtilsConfig.getAuditory();
|
||||
final Integer pre = roundTime-wave;
|
||||
|
||||
if (Arrays.stream(auditory).anyMatch(pre::equals)) {
|
||||
Minecraft.getMinecraft().thePlayer.playSound("note.pling",1,2);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,9 @@ package com.github.stachelbeere1248.zombiesutils.handlers;
|
|||
import com.github.stachelbeere1248.zombiesutils.ZombiesUtils;
|
||||
import com.github.stachelbeere1248.zombiesutils.config.Hotkeys;
|
||||
import com.github.stachelbeere1248.zombiesutils.config.ZombiesUtilsConfig;
|
||||
import com.github.stachelbeere1248.zombiesutils.game.waves.WaveTiming;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.event.entity.player.PlayerUseItemEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.gameevent.InputEvent;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
@ -20,6 +22,7 @@ public class KeyInputHandler {
|
|||
);
|
||||
} else if (Keyboard.getEventKey() == hotkeys.getRlSpawn().getKeyCode()) {
|
||||
RenderGameOverlayHandler.toggleRL();
|
||||
WaveTiming.toggleRL();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.github.stachelbeere1248.zombiesutils.handlers;
|
||||
|
||||
import com.github.stachelbeere1248.zombiesutils.game.waves.WaveTiming;
|
||||
import com.github.stachelbeere1248.zombiesutils.utils.Scoreboard;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
||||
|
@ -10,5 +11,6 @@ public class TickHandler {
|
|||
public void onTick(TickEvent.@NotNull ClientTickEvent event) {
|
||||
if (event.phase == TickEvent.Phase.START) return;
|
||||
Scoreboard.refresh();
|
||||
WaveTiming.onTick();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue