Extract ++ and -- from expressions
This commit is contained in:
@@ -60,11 +60,12 @@ final public class EntityChargedQuartz extends AEBaseEntityItem
|
||||
if ( !AEConfig.instance.isFeatureEnabled( AEFeature.inWorldFluix ) )
|
||||
return;
|
||||
|
||||
if ( Platform.isClient() && this.delay++ > 30 && AEConfig.instance.enableEffects )
|
||||
if ( Platform.isClient() && this.delay > 30 && AEConfig.instance.enableEffects )
|
||||
{
|
||||
CommonHelper.proxy.spawnEffect( EffectType.Lightning, this.worldObj, this.posX, this.posY, this.posZ, null );
|
||||
this.delay = 0;
|
||||
}
|
||||
this.delay++;
|
||||
|
||||
int j = MathHelper.floor_double( this.posX );
|
||||
int i = MathHelper.floor_double( this.posY );
|
||||
|
||||
@@ -48,8 +48,9 @@ final public class EntityFloatingItem extends EntityItem
|
||||
if ( !this.isDead && this.parent.isDead )
|
||||
this.setDead();
|
||||
|
||||
if ( this.superDeath++ > 100 )
|
||||
if ( this.superDeath > 100 )
|
||||
this.setDead();
|
||||
this.superDeath++;
|
||||
|
||||
this.age = ageStatic;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,8 @@ final public class EntitySingularity extends AEBaseEntityItem
|
||||
|
||||
ItemStack Output = AEApi.instance().materials().materialQESingularity.stack( 2 );
|
||||
NBTTagCompound cmp = Platform.openNbtData( Output );
|
||||
cmp.setLong( "freq", ( new Date() ).getTime() * 100 + ( randTickSeed++ ) % 100 );
|
||||
cmp.setLong( "freq", ( new Date() ).getTime() * 100 + ( randTickSeed ) % 100 );
|
||||
randTickSeed++;
|
||||
item.stackSize--;
|
||||
|
||||
this.worldObj.spawnEntityInWorld( new EntitySingularity( this.worldObj, this.posX, this.posY, this.posZ, Output ) );
|
||||
|
||||
@@ -91,7 +91,7 @@ final public class EntityTinyTNTPrimed extends EntityTNTPrimed implements IEntit
|
||||
this.setDead();
|
||||
}
|
||||
|
||||
if ( this.fuse-- <= 0 )
|
||||
if ( this.fuse <= 0 )
|
||||
{
|
||||
this.setDead();
|
||||
|
||||
@@ -104,6 +104,7 @@ final public class EntityTinyTNTPrimed extends EntityTNTPrimed implements IEntit
|
||||
{
|
||||
this.worldObj.spawnParticle( "smoke", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D );
|
||||
}
|
||||
this.fuse--;
|
||||
}
|
||||
|
||||
// override :P
|
||||
|
||||
Reference in New Issue
Block a user