From 63569afbf41d04a0fd31d7ca886ae9cd4c574432 Mon Sep 17 00:00:00 2001 From: gigaherz Date: Thu, 31 Oct 2024 00:10:26 +0100 Subject: [PATCH] Slight improvement. --- src/main/java/net/neoforged/neoforge/common/CommonHooks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/neoforged/neoforge/common/CommonHooks.java b/src/main/java/net/neoforged/neoforge/common/CommonHooks.java index 8fd6a6b2ed..bf4b4de7b0 100644 --- a/src/main/java/net/neoforged/neoforge/common/CommonHooks.java +++ b/src/main/java/net/neoforged/neoforge/common/CommonHooks.java @@ -1344,7 +1344,7 @@ public Optional> get(TagKey key) { @Override public boolean canSerializeIn(HolderOwner other) { - return Delegate.super.canSerializeIn(other) || other == lookup; + return Delegate.super.canSerializeIn(other) || lookup.canSerializeIn(other); } }; }