Skip to content

Commit

Permalink
Fix bug with freezer
Browse files Browse the repository at this point in the history
  • Loading branch information
medsal15 committed Dec 6, 2023
1 parent e49a46d commit cd89467
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/alternate/1/freezer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,10 @@ addLayer('fr', {
/** @type {() => [items, Decimal]} */
entry = () => {
if (+index < recipe().consumes.length) {
let e = [...recipe().consumes[+index]];
let e = recipe().consumes[+index];
// I'm assuming the problem is here
if (!e || !Array.isArray(e)) return ['stone', D.dZero];
else e = Array.from(e);
e[1] = e[1].neg();
return e;
} else {
Expand Down
4 changes: 3 additions & 1 deletion js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let VERSION = {
/**
* The mod's version number, displayed at the top right of the tree tab.
*/
num: 'R0.B',
num: 'R0.B.1',
/**
* The version's name, displayed alongside the number in the info tab.
*/
Expand All @@ -79,6 +79,8 @@ let VERSION = {
* HTML displayed in the changelog tab
*/
let changelog = `<h1>Changelog:</h1><br>
<h3>v0.B.1</h3><br>
- Fixed a bug with the Freezer.<br>
<h3>v0.B</h3><br>
- Added 5 new layers.<br>
- QoL: Add quick select buttons for city and plant.<br>
Expand Down

0 comments on commit cd89467

Please sign in to comment.