mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-31 07:00:06 +07:00
Bugfixes
This commit is contained in:
@ -317,7 +317,7 @@ public class BlockIndexer{
|
||||
}
|
||||
|
||||
private void process(Tile tile){
|
||||
if(tile.block().flags.size() > 0 && tile.team() != Team.derelict){
|
||||
if(tile.block().flags.size() > 0 && tile.team() != Team.derelict && tile.isCenter()){
|
||||
TileArray[] map = getFlagged(tile.team());
|
||||
|
||||
for(BlockFlag flag : tile.block().flags){
|
||||
|
@ -30,7 +30,6 @@ import mindustry.world.blocks.power.*;
|
||||
import mindustry.world.blocks.production.*;
|
||||
import mindustry.world.blocks.sandbox.*;
|
||||
import mindustry.world.blocks.storage.*;
|
||||
import mindustry.world.blocks.units.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.zip.*;
|
||||
@ -487,7 +486,7 @@ public class Schematics implements Loadable{
|
||||
//write each tile
|
||||
for(Stile tile : schematic.tiles){
|
||||
stream.writeByte(blocks.orderedItems().indexOf(tile.block));
|
||||
stream.writeInt(Point2.pack((int)tile.x, (int)tile.y));
|
||||
stream.writeInt(Point2.pack(tile.x, tile.y));
|
||||
TypeIO.writeObject(Writes.get(stream), tile.config);
|
||||
stream.writeByte(tile.rotation);
|
||||
}
|
||||
@ -499,7 +498,7 @@ public class Schematics implements Loadable{
|
||||
if(block instanceof Sorter || block instanceof Unloader || block instanceof ItemSource) return content.item(value);
|
||||
if(block instanceof LiquidSource) return content.liquid(value);
|
||||
if(block instanceof MassDriver || block instanceof ItemBridge) return Point2.unpack(value).sub(Point2.x(position), Point2.y(position));
|
||||
if(block instanceof LightBlock || block instanceof CommandCenter) return value;
|
||||
if(block instanceof LightBlock) return value;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ public enum BlockFlag{
|
||||
turret,
|
||||
/** Repair point. */
|
||||
repair,
|
||||
/** Rally point. TODO remove*/
|
||||
rally,
|
||||
/** Any block that boosts unit capacity. */
|
||||
unitModifier;
|
||||
|
||||
|
Reference in New Issue
Block a user