Skip to content

Commit

Permalink
fix: divergences to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jan 31, 2024
1 parent e1a2bcb commit d4fe87e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;
import net.minecraftforge.client.event.ScreenEvent;
import net.minecraftforge.eventbus.api.Event;
import net.neoforged.neoforge.client.event.ScreenEvent;

import java.awt.*;
import java.util.ArrayList;
Expand Down Expand Up @@ -397,7 +396,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
return super.keyPressed(keyCode, scanCode, modifiers);

if (JeiSettings.isJeiLoaded() && JeiSettings.isJeiSearchSynced()) {
JeiAccess.setFilterText(this.searchBar.getValue());
OccultismJeiIntegration.get().setFilterText(this.searchBar.getValue());
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
import net.neoforged.neoforge.client.event.EntityRenderersEvent;
import net.neoforged.neoforge.client.event.RegisterGuiOverlaysEvent;
import net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent;
import net.neoforged.neoforge.client.event.RegisterMenuScreensEvent;
import net.neoforged.neoforge.client.event.*;
import net.neoforged.neoforge.client.settings.KeyConflictContext;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.registries.NeoForgeRegistries;
Expand Down Expand Up @@ -166,7 +163,7 @@ public static void onClientSetup(FMLClientSetupEvent event) {
//Register client side event handlers
NeoForge.EVENT_BUS.register(Occultism.SELECTED_BLOCK_RENDERER);
NeoForge.EVENT_BUS.register(Occultism.THIRD_EYE_EFFECT_RENDERER);
MinecraftForge.EVENT_BUS.addListener((ScreenEvent.MouseButtonPressed.Pre e) -> StorageControllerGuiBase.onScreenMouseClickedPre(e));
NeoForge.EVENT_BUS.addListener((ScreenEvent.MouseButtonPressed.Pre e) -> StorageControllerGuiBase.onScreenMouseClickedPre(e));

//Register Tile Entity Renderers
BlockEntityRenderers.register(OccultismBlockEntities.STORAGE_CONTROLLER.get(), StorageControllerGeoRenderer::new);
Expand Down

0 comments on commit d4fe87e

Please sign in to comment.