Skip to content

Commit 958ff81

Browse files
committed
Use Set.copyOf for HatchFlags
1 parent 784e1b8 commit 958ff81

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/aztech/modern_industrialization/machines/multiblocks

1 file changed

+1
-2
lines changed

src/main/java/aztech/modern_industrialization/machines/multiblocks/HatchFlags.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424
package aztech.modern_industrialization.machines.multiblocks;
2525

26-
import java.util.Collections;
2726
import java.util.HashSet;
2827
import java.util.Set;
2928

@@ -33,7 +32,7 @@ public class HatchFlags {
3332
private final Set<HatchType> allowed;
3433

3534
public HatchFlags(Set<HatchType> allowed) {
36-
this.allowed = Collections.unmodifiableSet(allowed);
35+
this.allowed = Set.copyOf(allowed);
3736
}
3837

3938
public boolean allows(HatchType type) {

0 commit comments

Comments
 (0)