mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
v5.0.7 Release
*Bumped versions to 5.0.7. *Removed lightning rod -- it's OP, buggy, and doesn't make sense. *Sound effects for Heat Generator and Metallurgic Infuser. *Hydrogen Generator voltage bumped to 240. *Fixed Hydrogen Generator not working when below hydrogen level of 11. *Fixed machinery BuildCraft support. *Machines and generators light up when in active state. *Fixed Metallurgic Infuser output bug.
This commit is contained in:
1 parent
4f7bc5f635
commit
c328e393bf
24 files changed
+218
-118
No files matched your search
@@ -10,6 +10,7 @@ import mekanism.api.IElectricMachine;
|
||||
import mekanism.client.Sound;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import universalelectricity.core.electricity.ElectricityConnections;
|
||||
@@ -85,6 +86,12 @@ public abstract class TileEntityBasicMachine extends TileEntityElectricBlock imp
|
||||
{
|
||||
super.onUpdate();
|
||||
|
||||
if(powerProvider != null)
|
||||
{
|
||||
int received = (int)(powerProvider.useEnergy(0, (float)((currentMaxElectricity-electricityStored)*Mekanism.TO_BC), true)*10);
|
||||
setJoules(electricityStored + received);
|
||||
}
|
||||
|
||||
if(!registered && worldObj != null && !worldObj.isRemote)
|
||||
{
|
||||
Mekanism.manager.register(this);
|
||||
@@ -135,7 +142,7 @@ public abstract class TileEntityBasicMachine extends TileEntityElectricBlock imp
|
||||
{
|
||||
if(FMLClientHandler.instance().getClient().sndManager.sndSystem != null)
|
||||
{
|
||||
audio = Mekanism.audioHandler.getSound(fullName.replace(" ", ""), soundURL, worldObj, xCoord, yCoord, zCoord);
|
||||
audio = Mekanism.audioHandler.getSound(soundURL, worldObj, xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user