From f7b13b7924f067b92bfda0b6c0fbe75217551a88 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 9 Mar 2025 10:19:09 -0400 Subject: [PATCH] Fixed mixtech vault item dupe --- core/src/mindustry/world/blocks/storage/StorageBlock.java | 2 +- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/storage/StorageBlock.java b/core/src/mindustry/world/blocks/storage/StorageBlock.java index 31d0666b14..cb0fc541f1 100644 --- a/core/src/mindustry/world/blocks/storage/StorageBlock.java +++ b/core/src/mindustry/world/blocks/storage/StorageBlock.java @@ -112,7 +112,7 @@ public class StorageBlock extends Block{ //only add prev items when core is not linked if(linkedCore == null){ for(Building other : previous){ - if(other.items != null && other.items != items){ + if(other.items != null && other.items != items && !(other instanceof StorageBuild b && b.linkedCore != null)){ items.add(other.items); } } diff --git a/gradle.properties b/gradle.properties index bf5e62068e..6d741e1cd3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,4 +26,4 @@ org.gradle.caching=true org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 android.enableR8.fullMode=false -archash=deacd9c98e +archash=fc46b1cb55