Reduced amount of gear packets and new grinder sounds
This commit is contained in:
parent
89c32f1744
commit
a8e275c73b
7 changed files with 3 additions and 8 deletions
|
@ -82,11 +82,6 @@ public class BlockCrate extends BlockRI
|
|||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
|
||||
{
|
||||
if (super.onBlockActivated(world, x, y, z, player, side, hitX, hitY, hitZ))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!world.isRemote)
|
||||
{
|
||||
if (world.getBlockTileEntity(x, y, z) instanceof TileCrate)
|
||||
|
|
|
@ -17,7 +17,7 @@ public class SoundHandler
|
|||
{
|
||||
public static final SoundHandler INSTANCE = new SoundHandler();
|
||||
|
||||
public static final String[] SOUND_FILES = { "grinder1.ogg", "grinder2.ogg", "electricshock1.ogg", "electricshock2.ogg", "electricshock3.ogg", "electricshock4.ogg", "electricshock5.ogg", "electricshock6.ogg", "electricshock7.ogg" };
|
||||
public static final String[] SOUND_FILES = { "grinder1.ogg", "grinder2.ogg", "grinder3.ogg", "grinder4.ogg", "electricshock1.ogg", "electricshock2.ogg", "electricshock3.ogg", "electricshock4.ogg", "electricshock5.ogg", "electricshock6.ogg", "electricshock7.ogg" };
|
||||
|
||||
@ForgeSubscribe
|
||||
public void loadSoundEvents(SoundLoadEvent event)
|
||||
|
|
|
@ -75,13 +75,13 @@ public abstract class PartMechanical extends JCuboidPart implements JNormalOcclu
|
|||
ticks++;
|
||||
angle += angularVelocity / 20;
|
||||
|
||||
if (prevAngularVelocity != angularVelocity)
|
||||
if (Math.abs(prevAngularVelocity - angularVelocity) > 0.1f)
|
||||
{
|
||||
prevAngularVelocity = angularVelocity;
|
||||
markPacketUpdate = true;
|
||||
}
|
||||
|
||||
if (!world().isRemote && markPacketUpdate && ticks % 5 == 0)
|
||||
if (!world().isRemote && markPacketUpdate && ticks % 20 == 0)
|
||||
{
|
||||
sendRotationPacket();
|
||||
markPacketUpdate = false;
|
||||
|
|
Binary file not shown.
Binary file not shown.
BIN
src/main/resources/assets/resonantinduction/sound/grinder3.ogg
Normal file
BIN
src/main/resources/assets/resonantinduction/sound/grinder3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/assets/resonantinduction/sound/grinder4.ogg
Normal file
BIN
src/main/resources/assets/resonantinduction/sound/grinder4.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue