fixed missing channel on MultiBlock
This commit is contained in:
parent
c3730acf8e
commit
b76756d691
2 changed files with 4 additions and 4 deletions
|
@ -182,7 +182,7 @@ public class DarkMain extends ModPrefab
|
|||
/* CONFIGS */
|
||||
CONFIGURATION.load();
|
||||
/* BLOCKS */
|
||||
blockMulti = new BlockMulti(getNextID());
|
||||
blockMulti = new BlockMulti(getNextID()).setChannel(CHANNEL);
|
||||
CoreRecipeLoader.blockOre = new BlockOre(getNextID());
|
||||
CoreRecipeLoader.blockWire = new BlockWire(getNextID());
|
||||
CoreRecipeLoader.blockDebug = new BlockDebug(getNextID());
|
||||
|
|
|
@ -14,7 +14,7 @@ import universalelectricity.prefab.network.PacketManager;
|
|||
import com.google.common.io.ByteArrayDataInput;
|
||||
|
||||
/** This is a multiblock to be used for blocks that are bigger than one block.
|
||||
*
|
||||
*
|
||||
* @author Calclavia */
|
||||
public class TileEntityMulti extends TileEntity implements IPacketReceiver
|
||||
{
|
||||
|
@ -100,7 +100,7 @@ public class TileEntityMulti extends TileEntity implements IPacketReceiver
|
|||
public void readFromNBT(NBTTagCompound nbt)
|
||||
{
|
||||
super.readFromNBT(nbt);
|
||||
this.mainBlockPosition = Vector3.readFromNBT(nbt.getCompoundTag("mainBlockPosition"));
|
||||
this.mainBlockPosition = new Vector3(nbt.getCompoundTag("mainBlockPosition"));
|
||||
}
|
||||
|
||||
/** Writes a tile entity to NBT. */
|
||||
|
@ -116,7 +116,7 @@ public class TileEntityMulti extends TileEntity implements IPacketReceiver
|
|||
}
|
||||
|
||||
/** Determines if this TileEntity requires update calls.
|
||||
*
|
||||
*
|
||||
* @return True if you want updateEntity() to be called, false if not */
|
||||
@Override
|
||||
public boolean canUpdate()
|
||||
|
|
Loading…
Reference in a new issue