Alternate sync implementation for non-update blocks - Closes #11099
This commit is contained in:
@@ -1240,6 +1240,10 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
flags = flags.with(BlockFlag.hasFogRadius);
|
||||
}
|
||||
|
||||
if(sync){
|
||||
flags = flags.with(BlockFlag.synced);
|
||||
}
|
||||
|
||||
//initialize default health based on size
|
||||
if(health == -1){
|
||||
boolean round = false;
|
||||
|
||||
@@ -71,6 +71,7 @@ public class CoreBlock extends StorageBlock{
|
||||
priority = TargetPriority.core;
|
||||
flags = EnumSet.of(BlockFlag.core);
|
||||
unitCapModifier = 10;
|
||||
sync = false; //core items are synced elsewhere
|
||||
drawDisabled = false;
|
||||
canOverdrive = false;
|
||||
commandable = true;
|
||||
|
||||
@@ -21,6 +21,7 @@ public class StorageBlock extends Block{
|
||||
hasItems = true;
|
||||
solid = true;
|
||||
update = false;
|
||||
sync = true;
|
||||
destructible = true;
|
||||
separateItemCapacity = true;
|
||||
group = BlockGroup.transportation;
|
||||
|
||||
@@ -31,7 +31,8 @@ public enum BlockFlag{
|
||||
unitAssembler,
|
||||
hasFogRadius,
|
||||
steamVent,
|
||||
blockRepair;
|
||||
blockRepair,
|
||||
synced;
|
||||
|
||||
public final static BlockFlag[] all = values();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user