More environmental support

This commit is contained in:
Anuken
2021-06-18 09:31:28 -04:00
parent b77b89abfb
commit 5d8f6d7c97
8 changed files with 9 additions and 1 deletions
+2
View File
@@ -742,6 +742,7 @@ public class Blocks implements ContentList{
hasItems = true; hasItems = true;
hasPower = true; hasPower = true;
outputItem = new ItemStack(Items.pyratite, 1); outputItem = new ItemStack(Items.pyratite, 1);
envEnabled |= Env.space;
size = 2; size = 2;
@@ -755,6 +756,7 @@ public class Blocks implements ContentList{
hasPower = true; hasPower = true;
outputItem = new ItemStack(Items.blastCompound, 1); outputItem = new ItemStack(Items.blastCompound, 1);
size = 2; size = 2;
envEnabled |= Env.space;
consumes.items(with(Items.pyratite, 1, Items.sporePod, 1)); consumes.items(with(Items.pyratite, 1, Items.sporePod, 1));
consumes.power(0.40f); consumes.power(0.40f);
@@ -17,6 +17,7 @@ public class LiquidBridge extends ItemBridge{
outputsLiquid = true; outputsLiquid = true;
canOverdrive = false; canOverdrive = false;
group = BlockGroup.liquids; group = BlockGroup.liquids;
envEnabled = Env.any;
} }
public class LiquidBridgeBuild extends ItemBridgeBuild{ public class LiquidBridgeBuild extends ItemBridgeBuild{
@@ -16,6 +16,7 @@ public class LiquidExtendingBridge extends ExtendingItemBridge{
hasLiquids = true; hasLiquids = true;
outputsLiquid = true; outputsLiquid = true;
group = BlockGroup.liquids; group = BlockGroup.liquids;
envEnabled = Env.any;
} }
public class LiquidExtendingBridgeBuild extends ExtendingItemBridgeBuild{ public class LiquidExtendingBridgeBuild extends ExtendingItemBridgeBuild{
@@ -30,6 +30,7 @@ public class MessageBlock extends Block{
destructible = true; destructible = true;
group = BlockGroup.logic; group = BlockGroup.logic;
drawDisabled = false; drawDisabled = false;
envEnabled = Env.any;
config(String.class, (MessageBuild tile, String text) -> { config(String.class, (MessageBuild tile, String text) -> {
if(text.length() > maxTextLength){ if(text.length() > maxTextLength){
@@ -23,6 +23,7 @@ public class PowerDiode extends Block{
group = BlockGroup.power; group = BlockGroup.power;
noUpdateDisabled = true; noUpdateDisabled = true;
schematicPriority = 10; schematicPriority = 10;
envEnabled |= Env.space;
} }
@Override @Override
@@ -27,6 +27,7 @@ public class LiquidSource extends Block{
noUpdateDisabled = true; noUpdateDisabled = true;
displayFlow = false; displayFlow = false;
group = BlockGroup.liquids; group = BlockGroup.liquids;
envEnabled = Env.any;
config(Liquid.class, (LiquidSourceBuild tile, Liquid l) -> tile.source = l); config(Liquid.class, (LiquidSourceBuild tile, Liquid l) -> tile.source = l);
configClear((LiquidSourceBuild tile) -> tile.source = null); configClear((LiquidSourceBuild tile) -> tile.source = null);
@@ -13,6 +13,7 @@ public class LiquidVoid extends Block{
solid = true; solid = true;
update = true; update = true;
group = BlockGroup.liquids; group = BlockGroup.liquids;
envEnabled = Env.any;
} }
@Override @Override
+1 -1
View File
@@ -10,4 +10,4 @@ kapt.include.compile.classpath=false
kotlin.stdlib.default.dependency=false kotlin.stdlib.default.dependency=false
#needed for android compilation #needed for android compilation
android.useAndroidX=true android.useAndroidX=true
archash=df2786dd8de1ebc1b70c453d6dcac62c2ecf9e18 archash=283f2b76f419fc157312b26b1f1eff0de83898e1