mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
#1361 Enlightened Fused Quartz is not blast resistant
This commit is contained in:
1 parent
701cabeebf
commit
f49facf751
2 files changed
+6
-5
No files matched your search
@@ -50,7 +50,7 @@ public class BlockFusedQuartz extends BlockEio {
|
||||
}
|
||||
|
||||
public boolean connectTo(int otherMeta) {
|
||||
if (otherMeta == this.ordinal()) {
|
||||
if (otherMeta == ordinal()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -95,8 +95,8 @@ public class BlockFusedQuartz extends BlockEio {
|
||||
@Override
|
||||
public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ) {
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
meta = MathHelper.clamp_int(meta, 0, 1);
|
||||
if(meta == 0) {
|
||||
meta = MathHelper.clamp_int(meta, 0, Type.values().length - 1);
|
||||
if(meta == Type.FUSED_QUARTZ.ordinal() || meta == Type.ENLIGHTENED_FUSED_QUARTZ.ordinal()) {
|
||||
return 2000;
|
||||
} else {
|
||||
return super.getExplosionResistance(par1Entity);
|
||||
|
||||
Reference in new issue
Block a user