Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #108 from NorthernOceanS/issue107
Browse files Browse the repository at this point in the history
Fix flagGenerator and other things.
  • Loading branch information
callstackexceed authored Aug 10, 2021
2 parents c81bc22 + 4212cd3 commit 7cab71b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packs/behaviors/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"version": [
0,
13,
17
18
]
},
"modules": [
Expand Down
4 changes: 2 additions & 2 deletions packs/behaviors/scripts/plugin/nc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ flagGenerator.isValidParameter = function (e) {
if (state.height % 2 != 0) result += "The height is odd!"
if (result == "") return true;

runtime.logger && runtime.logger.log("info", result);
runtime.logger && runtime.logger.log("error", result);
return false;
};

Expand Down Expand Up @@ -1569,7 +1569,7 @@ system.registerCanonicalGenerator({
method: {
UIHandler: function () { }, generate: function (e) {
let { state, runtime } = e;
return new BuildInstruction("writeBuildingStructureToLog", {
return new BuildInstruction("writeBuildingStructure", {
startCoordinate: state.positions[0].coordinate,
endCoordinate: state.positions[1].coordinate,
referenceCoordinate: state.positions[2].coordinate,
Expand Down
2 changes: 1 addition & 1 deletion packs/behaviors/scripts/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const platform = {

return []
},
writeBuildingStructureToLog: function ({ startCoordinate, endCoordinate, referenceCoordinate, tickingArea }) {
writeBuildingStructure: function ({ startCoordinate, endCoordinate, referenceCoordinate, tickingArea }) {
if (startCoordinate.x >= endCoordinate.x) [startCoordinate.x, endCoordinate.x] = [endCoordinate.x, startCoordinate.x]
if (startCoordinate.y >= endCoordinate.y) [startCoordinate.y, endCoordinate.y] = [endCoordinate.y, startCoordinate.y]
if (startCoordinate.z >= endCoordinate.z) [startCoordinate.z, endCoordinate.z] = [endCoordinate.z, startCoordinate.z]
Expand Down

0 comments on commit 7cab71b

Please sign in to comment.