forked from SteamWar/SteamWar
Hotfix (FA)WE Selection 1.20+
This commit is contained in:
@@ -63,7 +63,9 @@ public class CLine extends CEntity {
|
|||||||
if (Objects.equals(from, this.from) && Objects.equals(to, this.to)) return this;
|
if (Objects.equals(from, this.from) && Objects.equals(to, this.to)) return this;
|
||||||
this.from = from;
|
this.from = from;
|
||||||
this.to = to;
|
this.to = to;
|
||||||
|
hide(true);
|
||||||
tick();
|
tick();
|
||||||
|
hide(false);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public class CWireframe extends CEntity {
|
|||||||
private void updateAndSpawnLines() {
|
private void updateAndSpawnLines() {
|
||||||
List<CLine> lines = getEntitiesByType(CLine.class);
|
List<CLine> lines = getEntitiesByType(CLine.class);
|
||||||
if (pos1 == null || pos2 == null) {
|
if (pos1 == null || pos2 == null) {
|
||||||
lines.forEach(line -> line.setFrom(null).setTo(null));
|
lines.forEach(line -> line.setFromAndTo(null, null));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user