Skip to content

Commit

Permalink
Updated 41.0.33 to 41.0.94
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Jul 16, 2022
1 parent c540289 commit 5797283
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

minecraft_version=1.19
forge_version=41.0.33
forge_version=41.0.94
forge_gradle=5.1.+

jei_version=jei-1.18.2-9.5.5.+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void onRemove(BlockState pState, @Nullable Level pLevel, @Nullable BlockP
BlockEntity entity = pLevel.getBlockEntity(Objects.requireNonNull(pPos));

if(entity instanceof CoalCombinerBlockEntity) {
NetworkHooks.openGui(((ServerPlayer) Objects.requireNonNull(pPlayer)), (CoalCombinerBlockEntity) entity, pPos);
NetworkHooks.openScreen(((ServerPlayer) Objects.requireNonNull(pPlayer)), (CoalCombinerBlockEntity) entity, pPos);
} else {
throw new IllegalStateException("Our Container provider is missing!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public InteractionResult use(@Nullable BlockState pState, Level pLevel, @Nullabl
BlockEntity entity = pLevel.getBlockEntity(Objects.requireNonNull(pPos));

if(entity instanceof CoalCrusherBlockEntity) {
NetworkHooks.openGui(((ServerPlayer) Objects.requireNonNull(pPlayer)), (CoalCrusherBlockEntity)entity, pPos);
NetworkHooks.openScreen(((ServerPlayer) Objects.requireNonNull(pPlayer)), (CoalCrusherBlockEntity)entity, pPos);
} else {
throw new IllegalStateException("Our Container provider is missing!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public InteractionResult use(@Nullable BlockState pState, Level pLevel, @Nullabl
BlockEntity entity = pLevel.getBlockEntity(Objects.requireNonNull(pPos));

if(entity instanceof GemCuttingStationBlockEntity) {
NetworkHooks.openGui(((ServerPlayer) Objects.requireNonNull(pPlayer)), (GemCuttingStationBlockEntity)entity, pPos);
NetworkHooks.openScreen(((ServerPlayer) Objects.requireNonNull(pPlayer)), (GemCuttingStationBlockEntity)entity, pPos);
} else {
throw new IllegalStateException("Our Container provider is missing!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@SuppressWarnings("ConstantConditions")
public class ModBlockEntities {
public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITIES, KrystalCraft.MOD_ID);
public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, KrystalCraft.MOD_ID);

public static final RegistryObject<BlockEntityType<GemCuttingStationBlockEntity>> GEM_CUTTING_STATION_BLOCK_ENTITY =
BLOCK_ENTITIES.register("gem_cutting_station_block_entity", () ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import net.minecraft.data.DataGenerator;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.data.event.GatherDataEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.forge.event.lifecycle.GatherDataEvent;
import net.tonimatasmc.krystalcraft.KrystalCraft;

@Mod.EventBusSubscriber(modid = KrystalCraft.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ModEventBusEvents {

@SubscribeEvent
public static void registerModifierSerializers(@Nonnull final RegisterEvent event) {
event.register(ForgeRegistries.Keys.LOOT_MODIFIER_SERIALIZERS, helper -> {
event.register(ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS, helper -> {
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.jetbrains.annotations.Nullable;

public class ModMenuTypes {
public static final DeferredRegister<MenuType<?>> MENUS = DeferredRegister.create(ForgeRegistries.CONTAINERS, KrystalCraft.MOD_ID);
public static final DeferredRegister<MenuType<?>> MENUS = DeferredRegister.create(ForgeRegistries.MENU_TYPES, KrystalCraft.MOD_ID);

public static final RegistryObject<MenuType<GemCuttingStationMenu>> GEM_CUTTING_STATION_MENU = registerMenuType(GemCuttingStationMenu::new, "gem_cutting_station_menu");
public static final RegistryObject<MenuType<CoalCrusherMenu>> COAL_CRUSHER_MENU = registerMenuType(CoalCrusherMenu::new, "coal_crusher_menu");
Expand Down

0 comments on commit 5797283

Please sign in to comment.