Basic reformat, hit once, hope never again
This commit is contained in:
@@ -40,23 +40,23 @@ public class ToolChargedStaff extends AEBasePoweredItem
|
||||
|
||||
public ToolChargedStaff()
|
||||
{
|
||||
super( AEConfig.instance.chargedStaffBattery, Optional.<String> absent() );
|
||||
super( AEConfig.instance.chargedStaffBattery, Optional.<String>absent() );
|
||||
this.setFeature( EnumSet.of( AEFeature.ChargedStaff, AEFeature.PoweredTools ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hitEntity( ItemStack item, EntityLivingBase target, EntityLivingBase hitter )
|
||||
{
|
||||
if ( this.getAECurrentPower( item ) > 300 )
|
||||
if( this.getAECurrentPower( item ) > 300 )
|
||||
{
|
||||
this.extractAEPower( item, 300 );
|
||||
if ( Platform.isServer() )
|
||||
if( Platform.isServer() )
|
||||
{
|
||||
for ( int x = 0; x < 2; x++ )
|
||||
for( int x = 0; x < 2; x++ )
|
||||
{
|
||||
float dx = ( float ) ( Platform.getRandomFloat() * target.width + target.boundingBox.minX );
|
||||
float dy = ( float ) ( Platform.getRandomFloat() * target.height + target.boundingBox.minY );
|
||||
float dz = ( float ) ( Platform.getRandomFloat() * target.width + target.boundingBox.minZ );
|
||||
float dx = (float) ( Platform.getRandomFloat() * target.width + target.boundingBox.minX );
|
||||
float dy = (float) ( Platform.getRandomFloat() * target.height + target.boundingBox.minY );
|
||||
float dz = (float) ( Platform.getRandomFloat() * target.width + target.boundingBox.minZ );
|
||||
ServerHelper.proxy.sendToAllNearExcept( null, dx, dy, dz, 32.0, target.worldObj, new PacketLightning( dx, dy, dz ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user