mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 07:27:15 +01:00
Update BlockStressDefaults to use thread-safe maps
#6579 by ByThePowerOfScience
This commit is contained in:
parent
08b5515068
commit
127724b23f
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
package com.simibubi.create.content.kinetics;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import com.simibubi.create.foundation.utility.Couple;
|
||||
|
@ -20,9 +20,9 @@ public class BlockStressDefaults {
|
|||
*/
|
||||
public static final int FORCED_UPDATE_VERSION = 2;
|
||||
|
||||
public static final Map<ResourceLocation, Double> DEFAULT_IMPACTS = new HashMap<>();
|
||||
public static final Map<ResourceLocation, Double> DEFAULT_CAPACITIES = new HashMap<>();
|
||||
public static final Map<ResourceLocation, Supplier<Couple<Integer>>> GENERATOR_SPEEDS = new HashMap<>();
|
||||
public static final Map<ResourceLocation, Double> DEFAULT_IMPACTS = new ConcurrentHashMap<>();
|
||||
public static final Map<ResourceLocation, Double> DEFAULT_CAPACITIES = new ConcurrentHashMap<>();
|
||||
public static final Map<ResourceLocation, Supplier<Couple<Integer>>> GENERATOR_SPEEDS = new ConcurrentHashMap<>();
|
||||
|
||||
public static void setDefaultImpact(ResourceLocation blockId, double impact) {
|
||||
DEFAULT_IMPACTS.put(blockId, impact);
|
||||
|
|
Loading…
Reference in a new issue