From 7b80a91c0270c5337c0c5b98069f712a3c29a227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Pitteli=20Gon=C3=A7alves?= Date: Wed, 11 Dec 2024 19:11:15 -0300 Subject: [PATCH 1/2] Update slimefun lib --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4e751929..2a92edb5 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ com.github.Slimefun Slimefun4 - 934ab822a6 + RC-37 provided From a56bc8b5a11b165cf1bc7a138a38900bb03af79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Pitteli=20Gon=C3=A7alves?= Date: Wed, 11 Dec 2024 19:12:45 -0300 Subject: [PATCH 2/2] dupe PoweredBedrock prevention --- .../infinityexpansion/items/machines/PoweredBedrock.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/io/github/mooy1/infinityexpansion/items/machines/PoweredBedrock.java b/src/main/java/io/github/mooy1/infinityexpansion/items/machines/PoweredBedrock.java index 4267b6c0..1e0ec48c 100644 --- a/src/main/java/io/github/mooy1/infinityexpansion/items/machines/PoweredBedrock.java +++ b/src/main/java/io/github/mooy1/infinityexpansion/items/machines/PoweredBedrock.java @@ -43,6 +43,12 @@ public void tick(Block b, SlimefunItem item, Config data) { } Location l = b.getLocation(); if (getCharge(l) < energy) { + + // dupe prevention + if (b.getType() == Material.AIR) { + return; + } + if (b.getType() != Material.NETHERITE_BLOCK) { b.setType(Material.NETHERITE_BLOCK); return;