mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixes, again
This commit is contained in:
parent
92eae300ae
commit
fda5389ac2
@ -309,10 +309,10 @@ public class FalloutConfigJSON {
|
||||
if(obj.has("primarySubstitution")) entry.prim(readMetaArray(obj.get("primarySubstitution")));
|
||||
if(obj.has("secondarySubstitutions")) entry.sec(readMetaArray(obj.get("secondarySubstitutions")));
|
||||
|
||||
if(obj.has("chance")) entry.c(obj.get("chance").getAsInt());
|
||||
if(obj.has("chance")) entry.c(obj.get("chance").getAsDouble());
|
||||
|
||||
if(obj.has("minimumDistancePercent")) entry.min(obj.get("minimumDistancePercent").getAsDouble());
|
||||
if(obj.has("maximumDistancePercent")) entry.min(obj.get("maximumDistancePercent").getAsDouble());
|
||||
if(obj.has("maximumDistancePercent")) entry.max(obj.get("maximumDistancePercent").getAsDouble());
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
@ -419,7 +419,7 @@ public class TileEntityMachineMiningLaser extends TileEntityMachineBase implemen
|
||||
}
|
||||
|
||||
private boolean canBreak(Block block, int x, int y, int z) {
|
||||
return block.isAir(worldObj, x, y, z) && block.getBlockHardness(worldObj, x, y, z) >= 0 && !block.getMaterial().isLiquid() && block != Blocks.bedrock;
|
||||
return !block.isAir(worldObj, x, y, z) && block.getBlockHardness(worldObj, x, y, z) >= 0 && !block.getMaterial().isLiquid() && block != Blocks.bedrock;
|
||||
}
|
||||
|
||||
public int getRange() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user