diff --git a/cubyz-common/src/io/cubyz/blocks/Block.java b/cubyz-common/src/io/cubyz/blocks/Block.java index 02882ab9..d4a1e8c8 100644 --- a/cubyz-common/src/io/cubyz/blocks/Block.java +++ b/cubyz-common/src/io/cubyz/blocks/Block.java @@ -14,6 +14,8 @@ public class Block implements IRegistryElement { private String texture; private float hardness; private boolean solid = true; + //NOTE FOR ZEN: This variable is mostly making the fluids non-selectable! Also i couln't find where you made the blocks selected. Please make if this is false, then the block isn't blue (selected)!! + private boolean selectable = true; public String getTexture() { return texture; @@ -36,6 +38,15 @@ public class Block implements IRegistryElement { return solid; } + public Block setSelectable(boolean selectable) { + this.selectable = selectable; + return this; + } + + public boolean isSelectable() { + return selectable; + } + public IRenderablePair getBlockPair() { return pair; } diff --git a/cubyz-common/src/io/cubyz/blocks/Water.java b/cubyz-common/src/io/cubyz/blocks/Water.java index 7c8572a5..5dfadcde 100644 --- a/cubyz-common/src/io/cubyz/blocks/Water.java +++ b/cubyz-common/src/io/cubyz/blocks/Water.java @@ -5,6 +5,7 @@ public class Water extends Block { public Water() { setTexture("water"); setID("cubyz:water"); + setSelectable(false); } }