Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Jan 2, 2025
1 parent b70878c commit 6fc142a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ Make sure to clear this after each release
Put changelog here:

-----------------
- Fixed custom Grass Color Modifiers to work 100% of the time.
- Added `PlaceInAirBlockItem,` thanks to Qzimyion!
- Added `ShapelessRecipeBuilderExtension`
- Updated to Kotlin 2.1
- Removed the `loot table whacker.`
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
min_loader_version=0.16.0

# Mod Properties
mod_version = 1.9.9
mod_version = 1.9.10
maven_group = net.frozenblock
archives_base_name = FrozenLib

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/frozenblock/lib/FrozenClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public final class FrozenClient implements ClientModInitializer {

@Override
public void onInitializeClient() {
FrozenMain.init();

FrozenClientRegistry.initRegistry();
ModIntegrations.initializePreFreeze(); // Mod integrations must run after normal mod initialization

Expand Down
12 changes: 10 additions & 2 deletions src/main/java/net/frozenblock/lib/FrozenMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@
import org.quiltmc.qsl.frozenblock.misc.datafixerupper.impl.ServerFreezer;

public final class FrozenMain extends FrozenModInitializer {
public static boolean INITIALIZED = false;

public FrozenMain() {
super(FrozenSharedConstants.MOD_ID);
}

@Override
public void onInitialize(String modId, ModContainer container) {
public static void init() {
if (INITIALIZED) return;
INITIALIZED = true;

FrozenRegistry.initRegistry();

// QUILT INIT
Expand Down Expand Up @@ -104,6 +107,11 @@ public void onInitialize(String modId, ModContainer container) {
ServerCapeData.init();

FrozenMainEntrypoint.EVENT.invoker().init(); // includes dev init
}

@Override
public void onInitialize(String modId, ModContainer container) {
init();

ArgumentTypeInfos.register(
BuiltInRegistries.COMMAND_ARGUMENT_TYPE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@

import net.frozenblock.lib.FrozenSharedConstants;
import net.frozenblock.lib.ingamedevtools.item.Camera;
import net.frozenblock.lib.ingamedevtools.item.LootTableWhacker;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.item.Item;

public class RegisterInGameDevTools {
public static final Item CAMERA = new Camera(new Item.Properties().stacksTo(1));
public static final Item LOOT_TABLE_WHACKER = new LootTableWhacker(new Item.Properties().stacksTo(1));

public static void register() {
Registry.register(BuiltInRegistries.ITEM, FrozenSharedConstants.id("camera"), CAMERA);
Registry.register(BuiltInRegistries.ITEM, FrozenSharedConstants.string("loot_table_whacker"), LOOT_TABLE_WHACKER);
}
}
5 changes: 0 additions & 5 deletions src/main/resources/assets/frozenlib/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@
"debug.neighbor_update": "Neighbor Updates",
"debug.game_event": "Game Events",

"frozenlib.loot_table_whacker.fail.no_name": "Loot Table Whacker has not been named!",
"frozenlib.loot_table_whacker.fail.no_colon": "Invalid ResourceLocation: No : present!",
"frozenlib.loot_table_whacker.fail.no_loot_table": "Loot table does not exist: %s",
"frozenlib.loot_table_whacker.success": "Set loot table to: %s",

"frozenlib.core.registry_sync.more": "%s more...",
"frozenlib.core.registry_sync.and": " and ",
"frozenlib.core.registry_sync.unsupported_mod_protocol": "Unsupported mod protocol versions for:\n%s",
Expand Down

0 comments on commit 6fc142a

Please sign in to comment.