From 3c80849edf4b830b245592671654bacefb343c99 Mon Sep 17 00:00:00 2001 From: StewStrong Date: Sun, 31 Dec 2023 06:06:25 -0700 Subject: [PATCH] Fixed ValkyrienSkiesMod.PHYSICS_ENTITY_CREATOR_ITEM not being initialized on forge --- .../mod/forge/common/ValkyrienSkiesModForge.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/forge/src/main/kotlin/org/valkyrienskies/mod/forge/common/ValkyrienSkiesModForge.kt b/forge/src/main/kotlin/org/valkyrienskies/mod/forge/common/ValkyrienSkiesModForge.kt index 76d9b64c6..921640ec3 100644 --- a/forge/src/main/kotlin/org/valkyrienskies/mod/forge/common/ValkyrienSkiesModForge.kt +++ b/forge/src/main/kotlin/org/valkyrienskies/mod/forge/common/ValkyrienSkiesModForge.kt @@ -3,7 +3,6 @@ package org.valkyrienskies.mod.forge.common import net.minecraft.commands.Commands.CommandSelection.ALL import net.minecraft.commands.Commands.CommandSelection.INTEGRATED import net.minecraft.resources.ResourceLocation -import net.minecraft.server.level.ServerPlayerGameMode import net.minecraft.world.entity.EntityType import net.minecraft.world.entity.MobCategory import net.minecraft.world.item.BlockItem @@ -18,12 +17,9 @@ import net.minecraftforge.client.event.RegisterKeyMappingsEvent import net.minecraftforge.event.AddReloadListenerEvent import net.minecraftforge.event.RegisterCommandsEvent import net.minecraftforge.event.TagsUpdatedEvent -import net.minecraftforge.event.entity.player.PlayerInteractEvent -import net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickBlock import net.minecraftforge.fml.ModLoadingContext import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus -import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent import net.minecraftforge.fml.loading.FMLEnvironment import net.minecraftforge.registries.DeferredRegister @@ -212,5 +208,6 @@ class ValkyrienSkiesModForge { ValkyrienSkiesMod.PHYSICS_ENTITY_TYPE = PHYSICS_ENTITY_TYPE_REGISTRY.get() ValkyrienSkiesMod.SHIP_ASSEMBLER_ITEM = SHIP_ASSEMBLER_ITEM_REGISTRY.get() ValkyrienSkiesMod.TEST_HINGE_BLOCK_ENTITY_TYPE = TEST_HINGE_BLOCK_ENTITY_TYPE_REGISTRY.get() + ValkyrienSkiesMod.PHYSICS_ENTITY_CREATOR_ITEM = PHYSICS_ENTITY_CREATOR_ITEM_REGISTRY.get() } }