fixed missing channel on MultiBlock

This commit is contained in:
DarkGuardsman 2013-09-08 02:44:02 -04:00
parent c3730acf8e
commit b76756d691
2 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ public class DarkMain extends ModPrefab
/* CONFIGS */ /* CONFIGS */
CONFIGURATION.load(); CONFIGURATION.load();
/* BLOCKS */ /* BLOCKS */
blockMulti = new BlockMulti(getNextID()); blockMulti = new BlockMulti(getNextID()).setChannel(CHANNEL);
CoreRecipeLoader.blockOre = new BlockOre(getNextID()); CoreRecipeLoader.blockOre = new BlockOre(getNextID());
CoreRecipeLoader.blockWire = new BlockWire(getNextID()); CoreRecipeLoader.blockWire = new BlockWire(getNextID());
CoreRecipeLoader.blockDebug = new BlockDebug(getNextID()); CoreRecipeLoader.blockDebug = new BlockDebug(getNextID());

View file

@ -14,7 +14,7 @@ import universalelectricity.prefab.network.PacketManager;
import com.google.common.io.ByteArrayDataInput; import com.google.common.io.ByteArrayDataInput;
/** This is a multiblock to be used for blocks that are bigger than one block. /** This is a multiblock to be used for blocks that are bigger than one block.
* *
* @author Calclavia */ * @author Calclavia */
public class TileEntityMulti extends TileEntity implements IPacketReceiver public class TileEntityMulti extends TileEntity implements IPacketReceiver
{ {
@ -100,7 +100,7 @@ public class TileEntityMulti extends TileEntity implements IPacketReceiver
public void readFromNBT(NBTTagCompound nbt) public void readFromNBT(NBTTagCompound nbt)
{ {
super.readFromNBT(nbt); super.readFromNBT(nbt);
this.mainBlockPosition = Vector3.readFromNBT(nbt.getCompoundTag("mainBlockPosition")); this.mainBlockPosition = new Vector3(nbt.getCompoundTag("mainBlockPosition"));
} }
/** Writes a tile entity to NBT. */ /** Writes a tile entity to NBT. */
@ -116,7 +116,7 @@ public class TileEntityMulti extends TileEntity implements IPacketReceiver
} }
/** Determines if this TileEntity requires update calls. /** Determines if this TileEntity requires update calls.
* *
* @return True if you want updateEntity() to be called, false if not */ * @return True if you want updateEntity() to be called, false if not */
@Override @Override
public boolean canUpdate() public boolean canUpdate()