From d12e3e35b32d711a244740092d660436d4cf17e0 Mon Sep 17 00:00:00 2001 From: Globox1997 Date: Thu, 11 Jan 2024 16:14:42 +0100 Subject: [PATCH] fixed rei issue --- CHANGELOG.md | 1 + .../net/levelz/compat/LevelzReiPlugin.java | 65 ------------------- 2 files changed, 1 insertion(+), 65 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c131c6..644b74d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,5 +2,6 @@ - Added spawner mob xp config option ### Fixed: - Fixed armor switching +- Fixed rei tooltip issue ### Changed: - \ No newline at end of file diff --git a/src/main/java/net/levelz/compat/LevelzReiPlugin.java b/src/main/java/net/levelz/compat/LevelzReiPlugin.java index d3f4a46..1476aa4 100644 --- a/src/main/java/net/levelz/compat/LevelzReiPlugin.java +++ b/src/main/java/net/levelz/compat/LevelzReiPlugin.java @@ -29,69 +29,4 @@ public void registerDisplays(DisplayRegistry registry) { registry.add(new DefaultBrewingDisplay(EntryIngredients.of(Items.DRAGON_BREATH), EntryIngredients.of(Items.NETHER_STAR), EntryStacks.of(new ItemStack(ItemInit.STRANGE_POTION)))); } - @Override - public void registerScreens(ScreenRegistry registry) { - registry.registerDecider(new DisplayBoundsProvider() { - - @Override - public ActionResult shouldScreenBeOverlaid(R screen) { - return ActionResult.SUCCESS; - } - - @Override - public @Nullable Rectangle getScreenBounds(SkillScreen screen) { - return new Rectangle(screen.width / 2 - (screen.getWidth() / 2), screen.height / 2 - (screen.getHeight() / 2), screen.getWidth(), screen.getHeight()); - } - - @Override - public boolean isHandingScreen(Class screen) { - if (screen.equals(SkillScreen.class)) - return true; - return false; - } - - }); - - registry.registerDecider(new DisplayBoundsProvider() { - - @Override - public ActionResult shouldScreenBeOverlaid(R screen) { - return ActionResult.SUCCESS; - } - - @Override - public @Nullable Rectangle getScreenBounds(SkillInfoScreen screen) { - return new Rectangle(screen.width / 2 - (screen.getWidth() / 2), screen.height / 2 - (screen.getHeight() / 2), screen.getWidth(), screen.getHeight()); - } - - @Override - public boolean isHandingScreen(Class screen) { - if (screen.equals(SkillInfoScreen.class)) - return true; - return false; - } - - }); - - registry.registerDecider(new DisplayBoundsProvider() { - - @Override - public ActionResult shouldScreenBeOverlaid(R screen) { - return ActionResult.SUCCESS; - } - - @Override - public @Nullable Rectangle getScreenBounds(SkillListScreen screen) { - return new Rectangle(screen.width / 2 - (screen.getWidth() / 2), screen.height / 2 - (screen.getHeight() / 2), screen.getWidth(), screen.getHeight()); - } - - @Override - public boolean isHandingScreen(Class screen) { - if (screen.equals(SkillListScreen.class)) - return true; - return false; - } - - }); - } }