i think a variable is not necessary for this

This commit is contained in:
Voxelstice 2023-01-16 18:01:23 +03:00 committed by GitHub
parent ed43221197
commit 1c0006ba39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,6 @@ import com.hbm.blocks.bomb.LaunchPad;
@Optional.InterfaceList({@Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "OpenComputers")})
public class TileEntityLaunchPad extends TileEntityLoadedBase implements ISidedInventory, IEnergyUser, SimpleComponent {
public LaunchPad launchpadBlock = (LaunchPad) ModBlocks.launch_pad;
public ItemStack slots[];
public long power;
@ -318,7 +317,7 @@ public class TileEntityLaunchPad extends TileEntityLoadedBase implements ISidedI
@Optional.Method(modid = "OpenComputers")
public Object[] launch(Context context, Arguments args) {
//worldObj.getBlock(xCoord, yCoord, zCoord).explode(worldObj, xCoord, yCoord, zCoord);
launchpadBlock.explode(worldObj, xCoord, yCoord, zCoord);
((LaunchPad) ModBlocks.launch_pad).explode(worldObj, xCoord, yCoord, zCoord);
return new Object[] {};
}
}