Skip to content

Commit 11d7b7c

Browse files
authored
Fix StackOverflowError when transferring fluids with NBT (#135)
1 parent aa9b7e1 commit 11d7b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/technici4n/moderndynamics/util/FluidVariantImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static FluidVariant of(FluidStack stack) {
6262
if (stack.isComponentsPatchEmpty() || stack.isEmpty()) {
6363
return of(stack.getFluid());
6464
} else {
65-
return of(stack);
65+
return new FluidVariantImpl(stack);
6666
}
6767
}
6868

0 commit comments

Comments
 (0)