Progress on sector state
This commit is contained in:
@@ -222,6 +222,8 @@ public class EntityProcess extends BaseProcessor{
|
||||
Array<Svar> syncedFields = new Array<>();
|
||||
Array<Svar> allFields = new Array<>();
|
||||
|
||||
boolean isSync = components.contains(s -> s.name().contains("Sync"));
|
||||
|
||||
//add all components
|
||||
for(Stype comp : components){
|
||||
|
||||
@@ -257,7 +259,7 @@ public class EntityProcess extends BaseProcessor{
|
||||
allFields.add(f);
|
||||
|
||||
//add extra sync fields
|
||||
if(f.has(SyncField.class)){
|
||||
if(f.has(SyncField.class) && isSync){
|
||||
if(!f.tname().toString().equals("float")) err("All SyncFields must be of type float", f);
|
||||
|
||||
syncedFields.add(f);
|
||||
|
||||
@@ -12,7 +12,7 @@ mindustry.entities.comp.PlayerComp=8
|
||||
mindustry.entities.comp.PuddleComp=9
|
||||
mindustry.entities.comp.TileComp=10
|
||||
mindustry.type.Weather.WeatherComp=11
|
||||
mindustry.world.blocks.storage.LaunchPad.LaunchPayloadComp=12
|
||||
mindustry.world.blocks.campaign.LaunchPad.LaunchPayloadComp=12
|
||||
oculon=13
|
||||
phantom=14
|
||||
tau=19
|
||||
|
||||
Reference in New Issue
Block a user