Extensive network refactor

This commit is contained in:
Anuken
2019-09-07 14:11:50 -04:00
parent 38fe99f10e
commit e90c8c4d3e
48 changed files with 781 additions and 887 deletions
@@ -25,7 +25,7 @@ public class Pathfinder{
public Pathfinder(){
Events.on(WorldLoadEvent.class, event -> clear());
Events.on(TileChangeEvent.class, event -> {
if(Net.client()) return;
if(net.client()) return;
for(Team team : Team.all){
TeamData data = state.teams.get(team);
@@ -43,7 +43,7 @@ public class Pathfinder{
}
public void update(){
if(Net.client() || paths == null) return;
if(net.client() || paths == null) return;
for(Team team : Team.all){
if(state.teams.isActive(team)){
@@ -116,7 +116,7 @@ public class WaveSpawner{
}
public boolean isSpawning(){
return spawning && !Net.client();
return spawning && !net.client();
}
private void reset(){