Improve performance of FluidRegistry.getBucketFluids
This commit is contained in:
parent
889fa4da7e
commit
5a48ca99b6
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue