From 51fec08b0f957ab391f55847eb3420ed239df3c7 Mon Sep 17 00:00:00 2001 From: Detlev1 <71934197+Detlev1@users.noreply.github.com> Date: Sat, 17 Aug 2024 02:52:21 +0200 Subject: [PATCH] 1.7.4: Yet another important bug fix (#142) --- build.gradle.kts | 2 +- src/main/java/dev/meyi/bn/BazaarNotifier.java | 2 +- src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0043452..99b9ddd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { } group = "dev.meyi.bazaarnotifier" -version = "1.7.3" +version = "1.7.4" val mod_id = "bazaarnotifier" java { diff --git a/src/main/java/dev/meyi/bn/BazaarNotifier.java b/src/main/java/dev/meyi/bn/BazaarNotifier.java index 75c7f4c..4447401 100644 --- a/src/main/java/dev/meyi/bn/BazaarNotifier.java +++ b/src/main/java/dev/meyi/bn/BazaarNotifier.java @@ -44,7 +44,7 @@ public class BazaarNotifier { public static final String MODID = "BazaarNotifier"; - public static final String VERSION = "1.7.3"; + public static final String VERSION = "1.7.4"; public static final String prefix = EnumChatFormatting.GOLD + "[" + EnumChatFormatting.YELLOW + "BN" + EnumChatFormatting.GOLD + "] " + EnumChatFormatting.RESET; diff --git a/src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java b/src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java index c3adc5b..8898665 100644 --- a/src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java +++ b/src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java @@ -48,7 +48,8 @@ public static void updateBazaarOrders(IInventory chest) { for (ItemStack item : items) { if (item != null && Item.itemRegistry.getIDForObject(item.getItem()) != 160 // Glass && Item.itemRegistry.getIDForObject(item.getItem()) != 102 // Glass - && Item.itemRegistry.getIDForObject(item.getItem()) != 262) { // Arrow + && Item.itemRegistry.getIDForObject(item.getItem()) != 262 // Arrow + && Item.itemRegistry.getIDForObject(item.getItem()) != 154 ) { //Hopper List lore = Utils.getLoreFromItemStack(item); Pattern p2 = Pattern.compile("(BUY|SELL):? (.*)");