From 5f02f7c73bbd4425eafcd99489b1ff3fff17d88e Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Thu, 30 Jul 2020 00:38:06 -0400
Subject: [PATCH] Bugfix

---
 src/facilities/farmyard/farmyard.js | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/facilities/farmyard/farmyard.js b/src/facilities/farmyard/farmyard.js
index 7e0f56accb9..21918a867b7 100644
--- a/src/facilities/farmyard/farmyard.js
+++ b/src/facilities/farmyard/farmyard.js
@@ -322,8 +322,11 @@ App.Facilities.Farmyard.farmyard = function() {
 			}));
 		}
 
-		linksDiv.append(App.UI.DOM.generateLinksStrip(links));
-		frag.append(linksDiv);
+		if (farmMenials) {
+			linksDiv.append(App.UI.DOM.generateLinksStrip(links));
+			frag.append(linksDiv);
+		}
+
 
 		return frag;
 	}
@@ -336,6 +339,7 @@ App.Facilities.Farmyard.farmyard = function() {
 			linksDiv = document.createElement("div"),
 
 			menials = V.menials,
+			farmMenials = V.farmMenials,
 			farmMenialsSpace = V.farmMenialsSpace,
 			bulkMax = V.PopCap - menials - V.fuckdolls - V.menialBioreactors,
 
@@ -374,8 +378,10 @@ App.Facilities.Farmyard.farmyard = function() {
 			}
 		}
 
-		linksDiv.append(App.UI.DOM.generateLinksStrip(links));
-		frag.append(linksDiv);
+		if (farmMenials) {
+			linksDiv.append(App.UI.DOM.generateLinksStrip(links));
+			frag.append(linksDiv);
+		}
 
 		return frag;
 	}
-- 
GitLab