More stuff ingame and showing up.
This commit is contained in:
@@ -39,9 +39,6 @@ import appeng.block.AEBaseBlock;
|
||||
import appeng.client.ActionKey;
|
||||
import appeng.client.EffectType;
|
||||
import appeng.core.CommonHelper;
|
||||
import appeng.core.sync.AppEngPacket;
|
||||
import appeng.core.sync.network.NetworkHandler;
|
||||
import appeng.items.tools.ToolNetworkTool;
|
||||
import appeng.util.Platform;
|
||||
import net.minecraftforge.fml.server.ServerLifecycleHooks;
|
||||
|
||||
@@ -85,31 +82,31 @@ public class ServerHelper extends CommonHelper
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendToAllNearExcept(final PlayerEntity p, final double x, final double y, final double z, final double dist, final World w, final AppEngPacket packet )
|
||||
{
|
||||
if( Platform.isClient() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for( final PlayerEntity o : this.getPlayers() )
|
||||
{
|
||||
final ServerPlayerEntity entityplayermp = (ServerPlayerEntity) o;
|
||||
|
||||
if( entityplayermp != p && entityplayermp.world == w )
|
||||
{
|
||||
final double dX = x - entityplayermp.getPosX();
|
||||
final double dY = y - entityplayermp.getPosY();
|
||||
final double dZ = z - entityplayermp.getPosZ();
|
||||
|
||||
if( dX * dX + dY * dY + dZ * dZ < dist * dist )
|
||||
{
|
||||
NetworkHandler.instance().sendTo( packet, entityplayermp );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// FIXME @Override
|
||||
// FIXME public void sendToAllNearExcept(final PlayerEntity p, final double x, final double y, final double z, final double dist, final World w, final AppEngPacket packet )
|
||||
// FIXME {
|
||||
// FIXME if( Platform.isClient() )
|
||||
// FIXME {
|
||||
// FIXME return;
|
||||
// FIXME }
|
||||
// FIXME
|
||||
// FIXME for( final PlayerEntity o : this.getPlayers() )
|
||||
// FIXME {
|
||||
// FIXME final ServerPlayerEntity entityplayermp = (ServerPlayerEntity) o;
|
||||
// FIXME
|
||||
// FIXME if( entityplayermp != p && entityplayermp.world == w )
|
||||
// FIXME {
|
||||
// FIXME final double dX = x - entityplayermp.getPosX();
|
||||
// FIXME final double dY = y - entityplayermp.getPosY();
|
||||
// FIXME final double dZ = z - entityplayermp.getPosZ();
|
||||
// FIXME
|
||||
// FIXME if( dX * dX + dY * dY + dZ * dZ < dist * dist )
|
||||
// FIXME {
|
||||
// FIXME NetworkHandler.instance().sendTo( packet, entityplayermp );
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
|
||||
@Override
|
||||
public void spawnEffect( final EffectType type, final World world, final double posX, final double posY, final double posZ, final Object o )
|
||||
@@ -166,14 +163,14 @@ public class ServerHelper extends CommonHelper
|
||||
{
|
||||
final ItemStack is = player.inventory.getStackInSlot( x );
|
||||
|
||||
if( !is.isEmpty() && is.getItem() instanceof ToolNetworkTool )
|
||||
{
|
||||
final CompoundNBT c = is.getTag();
|
||||
if( c != null && c.getBoolean( "hideFacades" ) )
|
||||
{
|
||||
return CableRenderMode.CABLE_VIEW;
|
||||
}
|
||||
}
|
||||
// FIXME if( !is.isEmpty() && is.getItem() instanceof ToolNetworkTool )
|
||||
// FIXME {
|
||||
// FIXME final CompoundNBT c = is.getTag();
|
||||
// FIXME if( c != null && c.getBoolean( "hideFacades" ) )
|
||||
// FIXME {
|
||||
// FIXME return CableRenderMode.CABLE_VIEW;
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user