Fixed a SMP crash issue with sound for belts
Not sure if you guys are even bug testing on SMP but you need too every so often. SMP lan, and SMP Dedicated are two diffrent server types. The SMP lan can get away with something like playing sound. However, doing anything client related on SMP Dedicated will cause a crash. Make sure in the code anything client releated is only done on the client reguard less of how small. Also who every changed the rejector to use the paper item and display the item name above it good job. Its a nice feature and better than the GUI I had, however if there isn't a way alread we need to work in a way to have several item on a rejector. Which we can either do with the detector, another block, or the rejector itself. On another note i turned down the AMP pull a little to make belt lines easier to feed.
This commit is contained in:
parent
0873406e7f
commit
be0518f2bf
3 changed files with 38 additions and 38 deletions
|
@ -110,7 +110,7 @@ public abstract class TileEntityAssemblyNetwork extends TileEntityElectricityRec
|
||||||
|
|
||||||
protected ElectricityPack getRequest()
|
protected ElectricityPack getRequest()
|
||||||
{
|
{
|
||||||
return new ElectricityPack(15, this.getVoltage());
|
return new ElectricityPack(10, this.getVoltage());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getMaxTransferRange()
|
protected int getMaxTransferRange()
|
||||||
|
|
|
@ -118,9 +118,9 @@ public class TileEntityConveyorBelt extends TileEntityAssemblyNetwork implements
|
||||||
PacketManager.sendPacketToClients(this.getDescriptionPacket());
|
PacketManager.sendPacketToClients(this.getDescriptionPacket());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isRunning())
|
if (this.isRunning()&& this.worldObj.isRemote)
|
||||||
{
|
{
|
||||||
if (this.ticks % (10) == 0) //sound is 0.5 seconds long (20 ticks/second)
|
if (this.ticks % (10) == 0 ) //sound is 0.5 seconds long (20 ticks/second)
|
||||||
Minecraft.getMinecraft().sndManager.playSound("assemblyline.conveyor", this.xCoord, this.yCoord, this.zCoord, 0.125f, 0.3f);
|
Minecraft.getMinecraft().sndManager.playSound("assemblyline.conveyor", this.xCoord, this.yCoord, this.zCoord, 0.125f, 0.3f);
|
||||||
|
|
||||||
this.wheelRotation += 40;
|
this.wheelRotation += 40;
|
||||||
|
|
Loading…
Reference in a new issue