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

Commit 7cab71b

Browse files
Merge pull request #108 from NorthernOceanS/issue107
Fix flagGenerator and other things.
2 parents c81bc22 + 4212cd3 commit 7cab71b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

packs/behaviors/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"version": [
88
0,
99
13,
10-
17
10+
18
1111
]
1212
},
1313
"modules": [

packs/behaviors/scripts/plugin/nc/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ flagGenerator.isValidParameter = function (e) {
11761176
if (state.height % 2 != 0) result += "The height is odd!"
11771177
if (result == "") return true;
11781178

1179-
runtime.logger && runtime.logger.log("info", result);
1179+
runtime.logger && runtime.logger.log("error", result);
11801180
return false;
11811181
};
11821182

@@ -1569,7 +1569,7 @@ system.registerCanonicalGenerator({
15691569
method: {
15701570
UIHandler: function () { }, generate: function (e) {
15711571
let { state, runtime } = e;
1572-
return new BuildInstruction("writeBuildingStructureToLog", {
1572+
return new BuildInstruction("writeBuildingStructure", {
15731573
startCoordinate: state.positions[0].coordinate,
15741574
endCoordinate: state.positions[1].coordinate,
15751575
referenceCoordinate: state.positions[2].coordinate,

packs/behaviors/scripts/server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const platform = {
8484

8585
return []
8686
},
87-
writeBuildingStructureToLog: function ({ startCoordinate, endCoordinate, referenceCoordinate, tickingArea }) {
87+
writeBuildingStructure: function ({ startCoordinate, endCoordinate, referenceCoordinate, tickingArea }) {
8888
if (startCoordinate.x >= endCoordinate.x) [startCoordinate.x, endCoordinate.x] = [endCoordinate.x, startCoordinate.x]
8989
if (startCoordinate.y >= endCoordinate.y) [startCoordinate.y, endCoordinate.y] = [endCoordinate.y, startCoordinate.y]
9090
if (startCoordinate.z >= endCoordinate.z) [startCoordinate.z, endCoordinate.z] = [endCoordinate.z, startCoordinate.z]

0 commit comments

Comments
 (0)