Skip to content

Commit

Permalink
Allow usage of println in init loader too
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <thesilkminer@outlook.com>
  • Loading branch information
TheSilkMiner committed Mar 4, 2022
1 parent f235ea7 commit 908e497
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@


import com.blamejared.crafttweaker.api.CraftTweakerAPI;
import com.blamejared.crafttweaker.api.CraftTweakerConstants;
import com.blamejared.crafttweaker.api.annotation.ZenRegister;
import com.blamejared.crafttweaker.api.game.Game;
import com.blamejared.crafttweaker.api.mod.Mods;
import org.openzen.zencode.java.ZenCodeGlobals;
import org.openzen.zencode.java.ZenCodeType;

@ZenRegister
@ZenRegister(loaders = {CraftTweakerConstants.DEFAULT_LOADER_NAME, CraftTweakerConstants.INIT_LOADER_NAME})
@ZenCodeType.Name("crafttweaker.api.Globals")
public final class CraftTweakerGlobals {

@ZenCodeGlobals.Global("game")
public static final Game GAME = new Game();

@ZenCodeGlobals.Global("loadedMods")
public static final Mods MODS = new Mods();
@ZenRegister
@ZenCodeType.Name("crafttweaker.api.CtGlobals")
public static final class CraftTweakerOnlyGlobals {

@ZenCodeGlobals.Global("game")
public static final Game GAME = new Game();

@ZenCodeGlobals.Global("loadedMods")
public static final Mods MODS = new Mods();

}

@ZenCodeGlobals.Global
public static void println(String msg) {
Expand Down

0 comments on commit 908e497

Please sign in to comment.