MCPcopy Create free account
hub / github.com/Garten/sourcecraft / correctCoordinates

Method correctCoordinates

src/periphery/Place.java:88–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 public boolean correctCoordinates() {
89 boolean changed = Position.bringInOrder(this.start, this.end);
90 if (this.start.x == this.end.x) {
91 this.end.x = this.end.x + 1;
92 changed = true;
93 }
94 if (this.start.y == this.end.y) {
95 this.end.y = this.end.y + 1;
96 changed = true;
97 }
98 if (this.start.z == this.end.z) {
99 this.end.z = this.end.z + 1;
100 changed = true;
101 }
102 return changed;
103 }
104
105}

Callers 1

initInputMethod · 0.80

Calls 1

bringInOrderMethod · 0.95

Tested by

no test coverage detected