Move lexicon elven trade recipe as well

This commit is contained in:
Vincent Lee committed 2020-03-25 13:47:42 -05:00
1 parent ccd2d01bb7
commit ff1d8ca293
15 files changed
+197 -166

No files matched your search

@@ -45,7 +45,6 @@ public class SyncHandler {
Map<ResourceLocation, RecipePureDaisy> pureDaisy = new HashMap<>();
Map<ResourceLocation, RecipeManaInfusion> manaInfusion = new HashMap<>();
Map<ResourceLocation, RecipeBrew> brew = new HashMap<>();
Map<ResourceLocation, RecipeElvenTrade> elvenTrade = new HashMap<>();
Map<ResourceLocation, RecipePetals> apothecary = new HashMap<>();
Map<ResourceLocation, RecipeRuneAltar> runeAltar = new HashMap<>();
@@ -53,7 +52,6 @@ public class SyncHandler {
r -> pureDaisy.put(r.getId(), r),
r -> manaInfusion.put(r.getId(), r),
r -> brew.put(r.getId(), r),
r -> elvenTrade.put(r.getId(), r),
r -> apothecary.put(r.getId(), r),
r -> runeAltar.put(r.getId(), r)
);
@@ -62,7 +60,6 @@ public class SyncHandler {
BotaniaAPI.pureDaisyRecipes = ImmutableMap.copyOf(pureDaisy);
BotaniaAPI.manaInfusionRecipes = ImmutableMap.copyOf(manaInfusion);
BotaniaAPI.brewRecipes = ImmutableMap.copyOf(brew);
BotaniaAPI.elvenTradeRecipes = ImmutableMap.copyOf(elvenTrade);
BotaniaAPI.petalRecipes = ImmutableMap.copyOf(apothecary);
BotaniaAPI.runeAltarRecipes = ImmutableMap.copyOf(runeAltar);
PacketHandler.HANDLER.send(PacketDistributor.ALL.noArg(), syncPacket());
@@ -70,7 +67,7 @@ public class SyncHandler {
}
private static PacketSyncRecipes syncPacket() {
return new PacketSyncRecipes(BotaniaAPI.brewRecipes, BotaniaAPI.elvenTradeRecipes, BotaniaAPI.manaInfusionRecipes,
return new PacketSyncRecipes(BotaniaAPI.brewRecipes, BotaniaAPI.manaInfusionRecipes,
BotaniaAPI.petalRecipes, BotaniaAPI.pureDaisyRecipes, BotaniaAPI.runeAltarRecipes);
}
@@ -79,7 +76,6 @@ public class SyncHandler {
@SubscribeEvent
public static void clientLogout(ClientPlayerNetworkEvent.LoggedOutEvent evt) {
BotaniaAPI.brewRecipes = Collections.emptyMap();
BotaniaAPI.elvenTradeRecipes = Collections.emptyMap();
BotaniaAPI.manaInfusionRecipes = Collections.emptyMap();
BotaniaAPI.petalRecipes = Collections.emptyMap();
BotaniaAPI.pureDaisyRecipes = Collections.emptyMap();