Alternate sync implementation for non-update blocks - Closes #11099

This commit is contained in:
Anuken
2025-08-06 21:54:38 +02:00
parent 6707ff5fdf
commit 0bdf4efcdd
5 changed files with 21 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -21,6 +21,7 @@ public class StorageBlock extends Block{
hasItems = true;
solid = true;
update = false;
sync = true;
destructible = true;
separateItemCapacity = true;
group = BlockGroup.transportation;

View File

@@ -31,7 +31,8 @@ public enum BlockFlag{
unitAssembler,
hasFogRadius,
steamVent,
blockRepair;
blockRepair,
synced;
public final static BlockFlag[] all = values();