Switch the initial recipe sync to a login packet

Should fix JEI not loading Botania recipes on server join. This removes
the need to run a resource reload to force JEI to pick them up
This commit is contained in:
Hubry committed 2020-01-15 01:05:39 +01:00
1 parent f65afb2aff
commit fe4d3157c3
5 files changed
+118 -10

No files matched your search

@@ -78,12 +78,4 @@ public class SyncHandler {
}
}
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID)
public static class CommonEvents {
@SubscribeEvent
public static void serverLogin(PlayerEvent.PlayerLoggedInEvent evt) {
PacketHandler.sendNonLocal((ServerPlayerEntity) evt.getPlayer(), syncPacket());
}
}
}