Merge pull request #1349 from BallOfEnergy1/OC_bugfix

small bug fix
This commit is contained in:
HbmMods 2024-02-21 09:53:15 +01:00 committed by GitHub
commit 4588db50af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,8 +2,6 @@ package com.hbm.tileentity.bomb;
import java.util.List;
import com.hbm.blocks.ModBlocks;
import com.hbm.blocks.bomb.LaunchPad;
import com.hbm.entity.missile.EntityMissileCustom;
import com.hbm.handler.MissileStruct;
import com.hbm.interfaces.IFluidAcceptor;
@ -704,9 +702,11 @@ public class TileEntityLaunchTable extends TileEntityLoadedBase implements ISide
@Callback
@Optional.Method(modid = "OpenComputers")
public Object[] launch(Context context, Arguments args) {
//worldObj.getBlock(xCoord, yCoord, zCoord).explode(worldObj, xCoord, yCoord, zCoord);
((LaunchPad) ModBlocks.launch_pad).explode(worldObj, xCoord, yCoord, zCoord);
return new Object[] {};
if(this.canLaunch()) {
this.launchFromDesignator();
return new Object[] {true};
}
return new Object[] {false};
}
@Override