Legacy blocks must not be logic constants

This commit is contained in:
Anuken
2023-07-25 21:10:21 -04:00
parent 0ef5255650
commit dc8783d4a6

View File

@@ -12,6 +12,7 @@ import mindustry.game.*;
import mindustry.logic.LExecutor.*;
import mindustry.type.*;
import mindustry.world.*;
import mindustry.world.blocks.legacy.*;
import java.io.*;
@@ -75,7 +76,7 @@ public class GlobalVars{
for(Block block : Vars.content.blocks()){
//only register blocks that have no item equivalent (this skips sand)
if(content.item(block.name) == null){
if(content.item(block.name) == null & !(block instanceof LegacyBlock)){
put("@" + block.name, block);
}
}