Fix registry crash induced by AbnormalsCore 3.2.0

This commit is contained in:
reidbhuntley 2021-06-15 00:57:29 -04:00
parent 550b456396
commit 785242d5b3

View file

@ -5,6 +5,7 @@ import static com.simibubi.create.foundation.block.connected.CTSpriteShifter.CTT
import static com.simibubi.create.foundation.block.connected.CTSpriteShifter.CTType.OMNIDIRECTIONAL;
import static com.simibubi.create.foundation.block.connected.CTSpriteShifter.CTType.VERTICAL;
import java.util.Arrays;
import java.util.IdentityHashMap;
import java.util.Map;
@ -77,7 +78,11 @@ public class AllSpriteShifts {
//
private static void populateMaps() {
WoodType.stream()
WoodType[] supportedWoodTypes = new WoodType[]{
WoodType.OAK, WoodType.SPRUCE, WoodType.BIRCH, WoodType.ACACIA, WoodType.JUNGLE, WoodType.DARK_OAK,
WoodType.CRIMSON, WoodType.WARPED
};
Arrays.stream(supportedWoodTypes)
.forEach(woodType -> WOODEN_WINDOWS.put(woodType, vertical("palettes/" + woodType.getName() + "_window")));
for (PaletteStoneVariants paletteStoneVariants : PaletteStoneVariants.values()) {