mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 15:02:03 -08:00
Backported EnumSet changes
This commit is contained in:
parent
dc0904a6c7
commit
51fe07daef
1 changed files with 4 additions and 4 deletions
|
|
@ -105,8 +105,8 @@ public class BlockIndexer{
|
|||
var flags = tile.block().flags;
|
||||
var data = team.data();
|
||||
|
||||
if(flags.size() > 0){
|
||||
for(BlockFlag flag : flags){
|
||||
if(flags.size > 0){
|
||||
for(BlockFlag flag : flags.array){
|
||||
getFlagged(team)[flag.ordinal()].remove(tile);
|
||||
}
|
||||
}
|
||||
|
|
@ -400,10 +400,10 @@ public class BlockIndexer{
|
|||
//only process entity changes with centered tiles
|
||||
if(tile.isCenter() && tile.build != null){
|
||||
var data = team.data();
|
||||
if(tile.block().flags.size() > 0 && tile.isCenter()){
|
||||
if(tile.block().flags.size > 0 && tile.isCenter()){
|
||||
TileArray[] map = getFlagged(team);
|
||||
|
||||
for(BlockFlag flag : tile.block().flags){
|
||||
for(BlockFlag flag : tile.block().flags.array){
|
||||
|
||||
TileArray arr = map[flag.ordinal()];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue