Hey the power system works again now. Woo...

This commit is contained in:
Vasco Lavos committed 2014-01-27 15:32:40 +00:00
1 parent 106b578b01
commit 9d810094f3
3 files changed
+3 -5

No files matched your search

@@ -13,6 +13,7 @@ package vazkii.botania.common.block.subtile;
import java.awt.Color;
import cpw.mods.fml.common.network.PacketDispatcher;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.entity.player.EntityPlayer;
@@ -100,6 +101,7 @@ public class SubTileGenerating extends SubTileEntity {
if(!collector.isFull()) {
collector.recieveMana(mana);
mana = 0;
PacketDispatcher.sendPacketToAllInDimension(linkedCollector.getDescriptionPacket(), supertile.worldObj.provider.dimensionId);
}
}
}
@@ -137,13 +137,11 @@ public class TileSpreader extends TileMod implements IManaCollector {
@Override
public void writeToNBT(NBTTagCompound par1nbtTagCompound) {
super.writeToNBT(par1nbtTagCompound);
par1nbtTagCompound.setBoolean(TAG_CAN_SHOOT, canShootBurst);
}
@Override
public void readFromNBT(NBTTagCompound par1nbtTagCompound) {
super.readFromNBT(par1nbtTagCompound);
canShootBurst = par1nbtTagCompound.getBoolean(TAG_CAN_SHOOT);
}
@Override
@@ -129,9 +129,7 @@ public class EntityManaBurst extends EntityThrowable {
int y = par1nbtTagCompound.getInteger(TAG_SPREADER_Y);
int z = par1nbtTagCompound.getInteger(TAG_SPREADER_Z);
TileEntity tile = worldObj.getBlockTileEntity(x, y, z);
if(tile != null && tile instanceof IManaCollector)
setBurstSourceCoords(x, y, z);
setBurstSourceCoords(x, y, z);
}
public void particles() {