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;
|
||||
this.from = from;
|
||||
this.to = to;
|
||||
hide(true);
|
||||
tick();
|
||||
hide(false);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public class CWireframe extends CEntity {
|
||||
private void updateAndSpawnLines() {
|
||||
List<CLine> lines = getEntitiesByType(CLine.class);
|
||||
if (pos1 == null || pos2 == null) {
|
||||
lines.forEach(line -> line.setFrom(null).setTo(null));
|
||||
lines.forEach(line -> line.setFromAndTo(null, null));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user