Skip to content

Commit 8bffd08

Browse files
authored
Merge pull request #219 from JustAHuman-xD/chore/prevent-storages-in-storages
[Chore] Prevent Quantum Storages in Quantum Storages
2 parents afd71ce + 4db3185 commit 8bffd08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<dependency>
149149
<groupId>com.github.Slimefun</groupId>
150150
<artifactId>Slimefun4</artifactId>
151-
<version>f1363ceadf</version>
151+
<version>0a7fea8</version>
152152
<scope>provided</scope>
153153
</dependency>
154154
<dependency>

src/main/java/io/github/sefiraat/networks/slimefun/network/NetworkQuantumStorage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ public static void tryInputItem(Location location, ItemStack[] input, QuantumCac
373373
private static boolean isBlacklisted(@Nonnull ItemStack itemStack) {
374374
return itemStack.getType() == Material.AIR
375375
|| itemStack.getType().getMaxDurability() < 0
376-
|| Tag.SHULKER_BOXES.isTagged(itemStack.getType());
376+
|| Tag.SHULKER_BOXES.isTagged(itemStack.getType())
377+
|| SlimefunItem.getByItem(itemStack) instanceof NetworkQuantumStorage;
377378
}
378379

379380
@ParametersAreNonnullByDefault

0 commit comments

Comments
 (0)