Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Skip handy test if gametest is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Apr 13, 2024
1 parent 9a7d14a commit 673ae75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/me/melontini/handytests/server/HandyServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public class HandyServer implements DedicatedServerModInitializer {

@Override
public void onInitializeServer() {
if (System.getProperty("fabric-api.gametest") != null) {
LOGGER.info("Skipping handy server test, as gametest is enabled!");
return;
}
MutableInt ticks = new MutableInt(0);
ServerTickEvents.END_SERVER_TICK.register(server -> ticks.add(1));

Expand Down

0 comments on commit 673ae75

Please sign in to comment.