mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Fixed the lens of detonation not being able to activate because the power buffer was too low.
/shrugs
This commit is contained in:
parent
77ba946306
commit
f372e5b77f
2 changed files with 3 additions and 3 deletions
|
@ -50,13 +50,13 @@ import net.minecraft.server.MinecraftServer;
|
|||
import java.util.Locale;
|
||||
|
||||
// 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{
|
||||
|
||||
@Instance(ModUtil.MOD_ID)
|
||||
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;
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -19,7 +19,7 @@ public class LensDetonation extends Lens{
|
|||
@Override
|
||||
public boolean invoke(Position hitBlock, IAtomicReconstructor tile){
|
||||
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){
|
||||
tile.getWorldObj().newExplosion(null, hitBlock.getX()+0.5, hitBlock.getY()+0.5, hitBlock.getZ()+0.5, 10F, true, true);
|
||||
tile.extractEnergy(use);
|
||||
|
|
Loading…
Reference in a new issue