From 93349725ba6262745ac03efda23971b6b93093bc Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Fri, 14 May 2021 13:41:49 -0500
Subject: [PATCH] Add error boxes, polish up the Minecraft setup guide a bit

---
 minecraft/setup/index.php | 10 ++++++++++
 styles/styles.css         | 21 +++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/minecraft/setup/index.php b/minecraft/setup/index.php
index a56fae4..6db9c15 100644
--- a/minecraft/setup/index.php
+++ b/minecraft/setup/index.php
@@ -22,6 +22,16 @@
 					<li>Go to <a href="https://www.java.com/en/download/manual.jsp">Java Downloads</a></li>
 					<li>Download and run the "Windows Offline (64-bit)" option</li>
 				</ol>
+				<div class="warning">
+					<i class="badge fa fa-warning"></i>
+					Ensure you do NOT install the 32-bit version of Java! Doing so may result in some of the following weird errors:
+					<ul>
+						<li>Being unable to launch a pack with over 4GB of memory allocated</li>
+						<li>"Java could not be invoked with the arguments specified"</li>
+						<li>Other random nebulous errors from MultiMC</li>
+					</ul>
+					If you're not sure whether or not you've installed 32-bit Java, uninstall and reinstall it just to be on the safe side.
+				</div>
 			</div>
 			<div class="subcontainer" id="multimc">
 				<h2>2. Installing MultiMC</h2>
diff --git a/styles/styles.css b/styles/styles.css
index 41a6759..e43d475 100644
--- a/styles/styles.css
+++ b/styles/styles.css
@@ -13,6 +13,8 @@
 	--line: rgba(0,0,0,0.1);
 	--greenlink: #327117;
 	--greenlink-hover: #47b625;
+	--warning: #f7cf04;
+	--error: #d95757;
 	--link: #286a9d;
 	--link-hover: #3ea5f3;
 	--shadow: 8px -5px rgba(0,0,0,0.1);
@@ -88,6 +90,25 @@ div.quote {
 	margin: 1em 4em;
 	padding: 1em;
 }
+div.warning,div.error {
+	border-radius: 8px;
+	box-shadow: 5px 5px var(--shadow);
+	padding: 1em;
+	border: 2px solid var(--text);
+	margin: 1em;
+}
+div.warning {
+	border-color: var(--warning);
+}
+div.warning i {
+	color: var(--warning);
+}
+div.error {
+	border-color: var(--error);
+}
+div.error i {
+	color: var(--error);
+}
 i.badge {
 	font-size: 200%;
 	float: right;