Improve performance of FluidRegistry.getBucketFluids

This commit is contained in:
mezz 2018-08-01 22:28:22 -07:00
parent 889fa4da7e
commit 5a48ca99b6

View file

@ -19,6 +19,7 @@
package net.minecraftforge.fluids;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
@ -298,7 +299,7 @@ public abstract class FluidRegistry
*/
public static Set<Fluid> getBucketFluids()
{
return ImmutableSet.copyOf(bucketFluids);
return Collections.unmodifiableSet(bucketFluids);
}