Fixed the lens of detonation not being able to activate because the power buffer was too low.

/shrugs
This commit is contained in:
Ellpeck 2016-01-05 04:52:53 +01:00
parent 77ba946306
commit f372e5b77f
2 changed files with 3 additions and 3 deletions

View file

@ -50,13 +50,13 @@ import net.minecraft.server.MinecraftServer;
import java.util.Locale; import java.util.Locale;
// So that BuildCraft Oil always gets used // So that BuildCraft Oil always gets used
@Mod(modid = ModUtil.MOD_ID, name = ModUtil.NAME, version = ModUtil.VERSION, dependencies = "after:BuildCraft|Energy", guiFactory = "GuiFactory") @Mod(modid = ModUtil.MOD_ID, name = ModUtil.NAME, version = ModUtil.VERSION, dependencies = "after:BuildCraft|Energy", guiFactory = "de.ellpeck.actuallyadditions.mod.config.GuiFactory")
public class ActuallyAdditions{ public class ActuallyAdditions{
@Instance(ModUtil.MOD_ID) @Instance(ModUtil.MOD_ID)
public static ActuallyAdditions instance; public static ActuallyAdditions instance;
@SidedProxy(clientSide = "ClientProxy", serverSide = "ServerProxy") @SidedProxy(clientSide = "de.ellpeck.actuallyadditions.mod.proxy.ClientProxy", serverSide = "de.ellpeck.actuallyadditions.mod.proxy.ServerProxy")
public static IProxy proxy; public static IProxy proxy;
@EventHandler @EventHandler

View file

@ -19,7 +19,7 @@ public class LensDetonation extends Lens{
@Override @Override
public boolean invoke(Position hitBlock, IAtomicReconstructor tile){ public boolean invoke(Position hitBlock, IAtomicReconstructor tile){
if(hitBlock != null && !hitBlock.getBlock(tile.getWorldObj()).isAir(tile.getWorldObj(), hitBlock.getX(), hitBlock.getY(), hitBlock.getZ())){ if(hitBlock != null && !hitBlock.getBlock(tile.getWorldObj()).isAir(tile.getWorldObj(), hitBlock.getX(), hitBlock.getY(), hitBlock.getZ())){
int use = 500000; int use = 250000;
if(tile.getEnergy() >= use){ if(tile.getEnergy() >= use){
tile.getWorldObj().newExplosion(null, hitBlock.getX()+0.5, hitBlock.getY()+0.5, hitBlock.getZ()+0.5, 10F, true, true); tile.getWorldObj().newExplosion(null, hitBlock.getX()+0.5, hitBlock.getY()+0.5, hitBlock.getZ()+0.5, 10F, true, true);
tile.extractEnergy(use); tile.extractEnergy(use);