Краш во FlansMod

Версия Minecraft
1.7.10
После того как садишься на заднее сидение в машину,нажимаешь ЛКМ...и после этого происходит краш.
Java:
package com.flansmod.common.driveables;

import io.netty.buffer.ByteBuf;

import java.util.List;

import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.EntityBodyHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.item.ItemLead;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;

import com.flansmod.api.IControllable;
import com.flansmod.client.FlansModClient;
import com.flansmod.common.FlansMod;
import com.flansmod.common.RotatedAxes;
import com.flansmod.common.driveables.mechas.EntityMecha;
import com.flansmod.common.guns.EnumFireMode;
import com.flansmod.common.guns.GunType;
import com.flansmod.common.guns.ItemShootable;
import com.flansmod.common.guns.ShootableType;
import com.flansmod.common.network.PacketDriveableKey;
import com.flansmod.common.network.PacketDriveableKeyHeld;
import com.flansmod.common.network.PacketPlaySound;
import com.flansmod.common.network.PacketSeatCheck;
import com.flansmod.common.network.PacketSeatUpdates;
import com.flansmod.common.teams.TeamsManager;
import com.flansmod.common.tools.ItemTool;
import com.flansmod.common.vector.Vector3f;

import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class EntitySeat extends Entity implements IControllable, IEntityAdditionalSpawnData
{
    /** Set this to true when the client has found the parent driveable and connected them */
    @SideOnly(Side.CLIENT)
    public boolean foundDriveable;
    private int driveableID;
    private int seatID;
    public EntityDriveable driveable;

    @SideOnly(Side.CLIENT)
    public float playerRoll, prevPlayerRoll;

    public Seat seatInfo;
    public boolean driver;

    /** A set of axes used to calculate where the seat is looking, x axis is the direction of looking, y is up */
    public RotatedAxes looking;
    /** For smooth renderering */
    public RotatedAxes prevLooking;
    /** A set of axes used to calculate where the player is looking, x axis is the direction of looking, y is up */
    public RotatedAxes playerLooking;
    /** For smooth renderering */
    public RotatedAxes prevPlayerLooking;
    /** Delay ticker for shooting guns */
    public int gunDelay;
    /** Minigun speed */
    public float minigunSpeed;
    /** Minigun angle for render */
    public float minigunAngle;

    /** Sound delay ticker for looping sounds */
    public int soundDelay;
    public int yawSoundDelay = 0;
    public int pitchSoundDelay = 0;

    /** Traverse sound states */
    public boolean playYawSound = false;
    public boolean playPitchSound = false;


    private double playerPosX, playerPosY, playerPosZ;
    private float playerYaw, playerPitch;
    /** For smoothness */
    private double prevPlayerPosX, prevPlayerPosY, prevPlayerPosZ;
    private float prevPlayerYaw, prevPlayerPitch;
    private boolean shooting;

    public Entity lastRiddenByEntity;
  
    public float targetYaw = 0;
  
    public float targetPitch = 0;
  
    public boolean artillery = false;

    public int timeLimitDriveableNull = 0;

    /** Default constructor for spawning client side
     * Should not be called server side EVER */
    public EntitySeat(World world)
    {
        super(world);
        setSize(1F, 1F);
        prevLooking = new RotatedAxes();
        looking = new RotatedAxes();
        playerLooking = new RotatedAxes();
        prevPlayerLooking = new RotatedAxes();
        lastRiddenByEntity = null;
    }

    /** Server side seat constructor */
    public EntitySeat(World world, EntityDriveable d, int id)
    {
        this(world);
        driveable = d;
        driveableID = d.getEntityId();
        seatInfo = driveable.getDriveableType().seats[id];
        driver = id == 0;
        setPosition(d.posX, d.posY, d.posZ);
        playerPosX = prevPlayerPosX = posX;
        playerPosY = prevPlayerPosY = posY;
        playerPosZ = prevPlayerPosZ = posZ;
        looking.setAngles((seatInfo.minYaw + seatInfo.maxYaw) / 2, 0F, 0F);
        playerLooking.setAngles((seatInfo.minYaw + seatInfo.maxYaw) / 2, 0F, 0F);

        //updatePosition();
    }

    @Override
    public void setPositionAndRotation2(double x, double y, double z, float yaw, float pitch, int i)
    {
        //setPosition(x, y, z);
    }

    @Override
    public void onUpdate()
    {
        super.onUpdate();
        //prevPosX = posX;
        //prevPosY = posY;
        //prevPosZ = posZ;
      

        if(driver && riddenByEntity==null)
        {
            prevLooking = looking.clone();
            prevPlayerLooking = playerLooking.clone();
        }
      
        //if(!driver && riddenByEntity == null)onMouseMoved(1,1);

        //If on the client and the driveable parent has yet to be found, search for it
        if(worldObj.isRemote && !foundDriveable)
        {
            driveable = (EntityDriveable)worldObj.getEntityByID(driveableID);
            if(driveable == null)
                return;
            foundDriveable = true;
            driveable.seats[seatID] = this;
            seatInfo = driveable.getDriveableType().seats[seatID];
            looking.setAngles((seatInfo.minYaw + seatInfo.maxYaw) / 2, 0F, 0F);
            playerLooking.setAngles((seatInfo.minYaw + seatInfo.maxYaw) / 2, 0F, 0F);
            prevLooking = looking.clone();
            playerPosX = prevPlayerPosX = posX = driveable.posX;
            playerPosY = prevPlayerPosY = posY = driveable.posY;
            playerPosZ = prevPlayerPosZ = posZ = driveable.posZ;
            setPosition(posX, posY, posZ);
        }

        if(driveable == null)
            return;

        EntityDriveable entD;
        entD = (EntityDriveable)worldObj.getEntityByID(driveableID);
        if(entD == null){
            this.timeLimitDriveableNull++;
        }else{
            this.timeLimitDriveableNull = 0;
        }

        if(timeLimitDriveableNull > 60*20){
            this.setDead();
        }

        //Update gun delay ticker
        if(gunDelay > 0)
            gunDelay--;
        //Update sound delay ticker
        if(soundDelay > 0)
            soundDelay--;
      
        if(yawSoundDelay > 0)
            yawSoundDelay--;
        if(pitchSoundDelay > 0)
            pitchSoundDelay--;
      
        //updatePosition();
      
        if (playYawSound == true && yawSoundDelay == 0 && seatInfo.traverseSounds == true && !driveable.disabled)
        {
            PacketPlaySound.sendSoundPacket(posX, posY, posZ, 50, dimension, seatInfo.yawSound, false);
            yawSoundDelay = seatInfo.yawSoundLength;
        }
      
        if (playPitchSound == true && pitchSoundDelay == 0 && seatInfo.traverseSounds == true && !driveable.disabled)
        {
            PacketPlaySound.sendSoundPacket(posX, posY, posZ, 50, dimension, seatInfo.pitchSound, false);
            pitchSoundDelay = seatInfo.pitchSoundLength;
        }

        //Reset traverse sounds if player exits the vehicle
        if(riddenByEntity instanceof EntityPlayer == false || !FlansMod.proxy.isThePlayer((EntityPlayer)riddenByEntity))
        {
            playYawSound = false;
            playPitchSound = false;
            yawSoundDelay = 0;
            pitchSoundDelay = 0;
        }

        //If on the client
        if(worldObj.isRemote)
        {
            if( driver &&
                riddenByEntity instanceof EntityPlayer &&
                FlansMod.proxy.isThePlayer((EntityPlayer) riddenByEntity) &&
                FlansModClient.controlModeMouse && driveable.hasMouseControlMode())
            {
                looking = new RotatedAxes();
                playerLooking = new RotatedAxes();
            }
            //DEBUG : Spawn particles along axes

            Vector3f xAxis = driveable.axes.findLocalAxesGlobally(looking).getXAxis();
            Vector3f yAxis = driveable.axes.findLocalAxesGlobally(looking).getYAxis();
            Vector3f zAxis = driveable.axes.findLocalAxesGlobally(looking).getZAxis();
            Vector3f yOffset = driveable.axes.findLocalVectorGlobally(new Vector3f(0F, riddenByEntity == null ? 0F : (float)riddenByEntity.getYOffset(), 0F));
            for(int i = 0; i < 10; i++)
            {
                //worldObj.spawnParticle("enchantmenttable",     posX + xAxis.x * i * 0.3D + yOffset.x, posY + xAxis.y * i * 0.3D + yOffset.y, posZ + xAxis.z * i * 0.3D + yOffset.z, 0, 0, 0);
                //worldObj.spawnParticle("smoke",             posX + yAxis.x * i * 0.3D + yOffset.x, posY + yAxis.y * i * 0.3D + yOffset.y, posZ + yAxis.z * i * 0.3D + yOffset.z, 0, 0, 0);
                //worldObj.spawnParticle("reddust",             posX + zAxis.x * i * 0.3D + yOffset.x, posY + zAxis.y * i * 0.3D + yOffset.y, posZ + zAxis.z * i * 0.3D + yOffset.z, 0, 0, 0);
            }

            if(lastRiddenByEntity instanceof EntityPlayer && riddenByEntity==null && FlansModClient.proxy.isThePlayer((EntityPlayer)lastRiddenByEntity))
            {
                FlansMod.getPacketHandler().sendToServer(new PacketSeatCheck(this));
            }
        }


        if(riddenByEntity instanceof EntityPlayer && shooting)
            pressKey(9, (EntityPlayer)riddenByEntity);

        minigunSpeed *= 0.95F;
        minigunAngle += minigunSpeed;
        //prevLooking = looking.clone();

        lastRiddenByEntity = riddenByEntity;
    }

    /** Set the position to be that of the driveable plus the local position, rotated */
    public void updatePosition()
    {
        //If we haven't found our driveable, give up
        if(worldObj.isRemote && !foundDriveable)
            return;

        prevPlayerPosX = playerPosX;
        prevPlayerPosY = playerPosY;
        prevPlayerPosZ = playerPosZ;

        prevPlayerYaw = playerYaw;
        prevPlayerPitch = playerPitch;

        //Get the position of this seat on the driveable axes
        Vector3f localPosition = new Vector3f(seatInfo.x, seatInfo.y, seatInfo.z);

        //Rotate the offset vector by the turret yaw
        if(driveable != null && driveable.seats != null && driveable.seats[0] != null && driveable.seats[0].looking != null)
        {
            RotatedAxes yawOnlyLooking = new RotatedAxes(driveable.seats[0].looking.getYaw(), (driveable.seats[0].seatInfo.part == EnumDriveablePart.barrel)?driveable.seats[0].looking.getPitch():0F, 0F);
            Vector3f rotatedOffset = yawOnlyLooking.findLocalVectorGlobally(seatInfo.rotatedOffset);
            Vector3f.add(localPosition, new Vector3f(rotatedOffset.x, (driveable.seats[0].seatInfo.part == EnumDriveablePart.barrel)?rotatedOffset.y:0F, rotatedOffset.z), localPosition);
        }

        //If this seat is connected to the turret, then its position vector on the driveable axes needs an extra rotation in it
        //if(driveable.rotateWithTurret(seatInfo) && driveable.seats[0] != null)
            //localPosition = driveable.seats[0].looking.findLocalVectorGlobally(localPosition);
        //Get the position of this seat globally, but positionally relative to the driveable
        if(this.driveable instanceof EntityPlane && ((EntityPlane)driveable).getPlaneType().valkyrie)
        {
            //localPosition = ((EntityPlane)driveable).anim.getFullPosition(new Vector3f(localPosition.x, localPosition.y, localPosition.z), ((EntityPlane)driveable).anim.parts.get(2));
        }
        localPosition = new Vector3f(localPosition.x / 16F, localPosition.y / 16F, localPosition.z / 16F);
        Vector3f relativePosition = driveable.axes.findLocalVectorGlobally(localPosition);
        //Set the absol
        setPosition(driveable.posX + relativePosition.x, driveable.posY + relativePosition.y, driveable.posZ + relativePosition.z);

        if(riddenByEntity != null)
        {
            DriveableType type = driveable.getDriveableType();
            Vec3 yOffset = driveable.rotate(0, riddenByEntity.getYOffset(), 0).toVec3();

            playerPosX = posX + yOffset.xCoord;
            playerPosY = posY + yOffset.yCoord;
            playerPosZ = posZ + yOffset.zCoord;

            riddenByEntity.lastTickPosX = riddenByEntity.prevPosX = prevPlayerPosX;
            riddenByEntity.lastTickPosY = riddenByEntity.prevPosY = prevPlayerPosY;
            riddenByEntity.lastTickPosZ = riddenByEntity.prevPosZ = prevPlayerPosZ;
            riddenByEntity.setPosition(playerPosX, playerPosY, playerPosZ);

            //Calculate the local look axes globally
            RotatedAxes globalLookAxes = driveable.axes.findLocalAxesGlobally(playerLooking);
            //Set the player's rotation based on this
            playerYaw = -90F + globalLookAxes.getYaw();
            playerPitch = globalLookAxes.getPitch();

            double dYaw = playerYaw - prevPlayerYaw;
            if(dYaw > 180)
                prevPlayerYaw += 360F;
            if(dYaw < -180)
                prevPlayerYaw -= 360F;

            if(riddenByEntity instanceof EntityPlayer)
            {
                riddenByEntity.prevRotationYaw = prevPlayerYaw;
                riddenByEntity.prevRotationPitch = prevPlayerPitch;

                riddenByEntity.rotationYaw = playerYaw;
                riddenByEntity.rotationPitch = playerPitch;
            }

            //If the entity is a player, roll its view accordingly
            if(worldObj.isRemote)
            {
                prevPlayerRoll = playerRoll;
                playerRoll = -globalLookAxes.getRoll();
            }
        }
    }

    @Override
    public void updateRiderPosition()
 
Краш-лог
-- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 12/2/17 7:51 PM
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 0
at com.flansmod.common.driveables.EntitySeat.pressKey(EntitySeat.java:434)
at com.flansmod.common.driveables.EntitySeat.func_70071_h_(EntitySeat.java:165)
at net.minecraft.world.World.func_72866_a(World.java:2674)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:800)
at net.minecraft.world.World.func_72870_g(World.java:2623)
at net.minecraft.world.World.func_72939_s(World.java:2423)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:633)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:954)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
at java.lang.Thread.run(Thread.java:748)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.flansmod.common.driveables.EntitySeat.pressKey(EntitySeat.java:434)
at com.flansmod.common.driveables.EntitySeat.func_70071_h_(EntitySeat.java:165)
at net.minecraft.world.World.func_72866_a(World.java:2674)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:800)
at net.minecraft.world.World.func_72870_g(World.java:2623)

-- Entity being ticked --
Details:
Entity Type: Seat (com.flansmod.common.driveables.EntitySeat)
Entity ID: 32625
Entity Name: entity.Seat.name
Entity's Exact location: 759.74, 66.75, -795.89
Entity's Block location: World: (759,66,-796), Chunk: (at 7,4,4 in 47,-50; contains blocks 752,0,-800 to 767,255,-785), Region: (1,-2; contains chunks 32,-64 to 63,-33, blocks 512,0,-1024 to 1023,255,-513)
Entity's Momentum: 0.00, 0.00, 0.00
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:2423)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:633)

-- Affected level --
Details:
Level name: world
All players: 22 total; [EntityPlayerMP['Snaiper33'/221, l='world', x=841.65, y=76.00, z=-761.25](Snaiper33 at 841.6517707114236,76.0,-761.2524994098269), EntityPlayerMP['FoReVeR'/6831, l='world', x=18.65, y=65.00, z=12.44](FoReVeR at 18.6505985570304,65.0,12.441725185758543), EntityPlayerMP['_SteelRay_'/10055, l='world', x=-9.15, y=65.00, z=-8.94](_SteelRay_ at -9.146050746000318,65.0,-8.938816208468007), EntityPlayerMP['Alina_kit'/12432, l='world', x=-1628.05, y=70.00, z=1754.86](Alina_kit at -1628.0518435751308,70.0,1754.8634561818071), EntityPlayerMP['Osvoitel'/12931, l='world', x=-16.70, y=69.00, z=8.01](Osvoitel at -16.69999998807907,69.0,8.01046683473538), EntityPlayerMP['sashanok'/16985, l='world', x=45.49, y=65.00, z=-72.19](sashanok at 45.491262986137876,65.0,-72.1908205721441), EntityPlayerMP['KillerLordMLG'/363, l='world', x=47.73, y=65.00, z=-67.04](KillerLordMLG at 47.72502101730664,65.0,-67.03710531653024), EntityPlayerMP['FeaTHerS37'/18486, l='world', x=-1459.67, y=111.00, z=221.16](FeaTHerS37 at -1459.6674000149142,111.0,221.1612673168655), EntityPlayerMP['waxr3'/20459, l='world', x=-7.61, y=65.00, z=24.70](waxr3 at -7.60670561821899,65.0,24.699999988079064), EntityPlayerMP['Just4iter'/20066, l='world', x=759.74, y=66.25, z=-795.89](Just4iter at 759.7384504337213,66.2528970092535,-795.8926005415153), EntityPlayerMP['K4RL'/8504, l='world', x=844.36, y=75.00, z=-751.97](K4RL at 844.3645901488327,75.0,-751.9668888808923), EntityPlayerMP['MegaSkill'/27727, l='world', x=-2.44, y=65.00, z=14.75](MegaSkill at -2.4351400537996724,65.0,14.750538183680497), EntityPlayerMP['MoJIuTBEHHuK'/26139, l='world', x=-900.10, y=65.00, z=1004.25](MoJIuTBEHHuK at -900.1031137533805,65.0,1004.2475532821612), EntityPlayerMP['IBTrake'/28508, l='world', x=760.22, y=66.25, z=-795.09](IBTrake at 760.2164374251267,66.25034204125404,-795.0861092857551), EntityPlayerMP['TemaGamerYT'/28559, l='world', x=846.35, y=75.00, z=-752.72](TemaGamerYT at 846.3506997766292,75.0,-752.7164134902354), EntityPlayerMP['kaloha'/556, l='world', x=44.44, y=65.00, z=-70.86](kaloha at 44.442617076133445,65.0,-70.8586186340606), EntityPlayerMP['Raichu228'/29077, l='world', x=-23.22, y=65.00, z=1.16](Raichu228 at -23.224628788285983,65.0,1.1635871396309072), EntityPlayerMP['tander'/28357, l='world', x=1070.15, y=65.00, z=-866.33](tander at 1070.1483572937866,65.0,-866.3257056530406), EntityPlayerMP['GoldWardeN'/10583, l='world', x=1332.02, y=65.00, z=-733.87](GoldWardeN at 1332.0180185219112,65.0,-733.8713708097887), EntityPlayerMP['_ProkoP_'/734, l='world', x=-5.21, y=65.00, z=14.78](_ProkoP_ at -5.214562503859456,65.0,14.775708951024042), EntityPlayerMP['KoTeE'/26200, l='world', x=328.09, y=65.00, z=1427.32](KoTeE at 328.0928396574021,65.0,1427.3173900371369), EntityPlayerMP['OneKiller'/25769, l='world', x=-1.42, y=65.00, z=14.20](OneKiller at -1.4239454202331916,65.0,14.202062987925522)]
Chunk stats: ServerChunkCache: 3934 Drop: 0
Level seed: 27594263
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options:
Level spawn location: World: (-267,22,-14), Chunk: (at 5,1,2 in -17,-1; contains blocks -272,0,-16 to -257,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 69769597 game time, 73590794 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 22389 (now: false), thunder time: 19945 (now: false)
Level game mode: Game mode: adventure (ID 2). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:954)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
at java.lang.Thread.run(Thread.java:748)

-- System Details --
Details:
Minecraft Version: 1.7.10
KCauldron Version: pw.prok:KCauldron:1.7.10-1614.201 Official
Plugins: AutoSaveWorld, nGuard, WorldEdit, AutoRespawnPlus, AntiAd, Essentials, VoxelSniper, PermissionsEx, ClearLag, McAgeAddloot, AutoMessage, WorldBorder, Trading, Vault, HideStream, ChatManager, WorldGuard, AntiLog, PhatLoots, WGExtender, ShoppingCartReloaded
Disabled Plugins:
Operating System: Linux (amd64) version 3.13.0-132-generic
Java Version: 1.8.0_151, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1221184448 bytes (1164 MB) / 1929904128 bytes (1840 MB) up to 3773300736 bytes (3598 MB)
JVM Flags: 1 total; -Xmx4048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 16 mods loaded, 16 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (KCauldron-1.7.10-1614.201.jar)
UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (KCauldron-1.7.10-1614.201.jar)
UCHIJAAAA kimagine{0.2} [KImagine] (minecraft.jar)
UCHIJAAAA PlayerAPI{1.3} [Player API] (minecraft.jar)
UCHIJAAAA SmartCore{1.0.2} [Smart Core] (minecraft.jar)
UCHIJAAAA CarpentersBlocks{3.3.8.1} [Carpenter's Blocks] (CarpentersBlocks.jar)
UCHIJAAAA customnpcs{1.7.10b} [CustomNpcs] (Custom-NPCs-Mod-1.7.10.jar)
UCHIJAAAA dcs{1.0.1} [dcs] (Debug_Server1.1.jar)
UCHIJAAAA flansmod{4.10.0} [Flan's Mod] (Flan.jar)
UCHIJAAAA McAgeAddloot{1.0} [McAgeAddloot] (Friends_Server.jar)
UCHIJAAAA gvc{0.6.1} [�aGliby's�f Voice Chat Mod] (GlibysVC-1.7.10-0.6.2a.jar)
UCHIJAAAA TeNNoX_KeyAndCodeLock{1.4} [KeyAndCodeLock] (KeyAndCodeLock_1.7.10_1.4.jar)
UCHIJAAAA mcheli{0.10.8} [MC Helicopter] (mcheli)
UCHIJAAAA SmartMoving{15.5} [Smart Moving] (SmartMoving-1.7.10-15.5.jar)
UCHIJAAAA SmartRender{2.1} [Smart Render] (SmartRender-1.7.10-2.1.jar)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 22 / 50; [EntityPlayerMP['Snaiper33'/221, l='world', x=841.65, y=76.00, z=-761.25](Snaiper33 at 841.6517707114236,76.0,-761.2524994098269), EntityPlayerMP['FoReVeR'/6831, l='world', x=18.65, y=65.00, z=12.44](FoReVeR at 18.6505985570304,65.0,12.441725185758543), EntityPlayerMP['_SteelRay_'/10055, l='world', x=-9.15, y=65.00, z=-8.94](_SteelRay_ at -9.146050746000318,65.0,-8.938816208468007), EntityPlayerMP['Alina_kit'/12432, l='world', x=-1628.05, y=70.00, z=1754.86](Alina_kit at -1628.0518435751308,70.0,1754.8634561818071), EntityPlayerMP['Osvoitel'/12931, l='world', x=-16.70, y=69.00, z=8.01](Osvoitel at -16.69999998807907,69.0,8.01046683473538), EntityPlayerMP['sashanok'/16985, l='world', x=45.49, y=65.00, z=-72.19](sashanok at 45.491262986137876,65.0,-72.1908205721441), EntityPlayerMP['KillerLordMLG'/363, l='world', x=47.73, y=65.00, z=-67.04](KillerLordMLG at 47.72502101730664,65.0,-67.03710531653024), EntityPlayerMP['FeaTHerS37'/18486, l='world', x=-1459.67, y=111.00, z=221.16](FeaTHerS37 at -1459.6674000149142,111.0,221.1612673168655), EntityPlayerMP['waxr3'/20459, l='world', x=-7.61, y=65.00, z=24.70](waxr3 at -7.60670561821899,65.0,24.699999988079064), EntityPlayerMP['Just4iter'/20066, l='world', x=759.74, y=66.25, z=-795.89](Just4iter at 759.7384504337213,66.2528970092535,-795.8926005415153), EntityPlayerMP['K4RL'/8504, l='world', x=844.36, y=75.00, z=-751.97](K4RL at 844.3645901488327,75.0,-751.9668888808923), EntityPlayerMP['MegaSkill'/27727, l='world', x=-2.44, y=65.00, z=14.75](MegaSkill at -2.4351400537996724,65.0,14.750538183680497), EntityPlayerMP['MoJIuTBEHHuK'/26139, l='world', x=-900.10, y=65.00, z=1004.25](MoJIuTBEHHuK at -900.1031137533805,65.0,1004.2475532821612), EntityPlayerMP['IBTrake'/28508, l='world', x=760.22, y=66.25, z=-795.09](IBTrake at 760.2164374251267,66.25034204125404,-795.0861092857551), EntityPlayerMP['TemaGamerYT'/28559, l='world', x=846.35, y=75.00, z=-752.72](TemaGamerYT at 846.3506997766292,75.0,-752.7164134902354), EntityPlayerMP['kaloha'/556, l='world', x=44.44, y=65.00, z=-70.86](kaloha at 44.442617076133445,65.0,-70.8586186340606), EntityPlayerMP['Raichu228'/29077, l='world', x=-23.22, y=65.00, z=1.16](Raichu228 at -23.224628788285983,65.0,1.1635871396309072), EntityPlayerMP['tander'/28357, l='world', x=1070.15, y=65.00, z=-866.33](tander at 1070.1483572937866,65.0,-866.3257056530406), EntityPlayerMP['GoldWardeN'/10583, l='world', x=1332.02, y=65.00, z=-733.87](GoldWardeN at 1332.0180185219112,65.0,-733.8713708097887), EntityPlayerMP['_ProkoP_'/734, l='world', x=-5.21, y=65.00, z=14.78](_ProkoP_ at -5.214562503859456,65.0,14.775708951024042), EntityPlayerMP['KoTeE'/26200, l='world', x=328.09, y=65.00, z=1427.32](KoTeE at 328.0928396574021,65.0,1427.3173900371369), EntityPlayerMP['OneKiller'/25769, l='world', x=-1.42, y=65.00, z=14.20](OneKiller at -1.4239454202331916,65.0,14.202062987925522)]
Is Modded: Definitely; Server brand changed to 'kcauldron,cauldron,craftbukkit,mcpc,fml,forge'
Type: Dedicated Server (map_server.txt)
Краш-лог:
-- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 12/2/17 7:51 PM
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 0
at com.flansmod.common.driveables.EntitySeat.pressKey(EntitySeat.java:434)
at com.flansmod.common.driveables.EntitySeat.func_70071_h_(EntitySeat.java:165)
at net.minecraft.world.World.func_72866_a(World.java:2674)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:800)
at net.minecraft.world.World.func_72870_g(World.java:2623)
at net.minecraft.world.World.func_72939_s(World.java:2423)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:633)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:954)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
at java.lang.Thread.run(Thread.java:748)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.flansmod.common.driveables.EntitySeat.pressKey(EntitySeat.java:434)
at com.flansmod.common.driveables.EntitySeat.func_70071_h_(EntitySeat.java:165)
at net.minecraft.world.World.func_72866_a(World.java:2674)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:800)
at net.minecraft.world.World.func_72870_g(World.java:2623)

-- Entity being ticked --
Details:
Entity Type: Seat (com.flansmod.common.driveables.EntitySeat)
Entity ID: 32625
Entity Name: entity.Seat.name
Entity's Exact location: 759.74, 66.75, -795.89
Entity's Block location: World: (759,66,-796), Chunk: (at 7,4,4 in 47,-50; contains blocks 752,0,-800 to 767,255,-785), Region: (1,-2; contains chunks 32,-64 to 63,-33, blocks 512,0,-1024 to 1023,255,-513)
Entity's Momentum: 0.00, 0.00, 0.00
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:2423)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:633)

-- Affected level --
Details:
Level name: world
All players: 22 total; [EntityPlayerMP['Snaiper33'/221, l='world', x=841.65, y=76.00, z=-761.25](Snaiper33 at 841.6517707114236,76.0,-761.2524994098269), EntityPlayerMP['FoReVeR'/6831, l='world', x=18.65, y=65.00, z=12.44](FoReVeR at 18.6505985570304,65.0,12.441725185758543), EntityPlayerMP['_SteelRay_'/10055, l='world', x=-9.15, y=65.00, z=-8.94](_SteelRay_ at -9.146050746000318,65.0,-8.938816208468007), EntityPlayerMP['Alina_kit'/12432, l='world', x=-1628.05, y=70.00, z=1754.86](Alina_kit at -1628.0518435751308,70.0,1754.8634561818071), EntityPlayerMP['Osvoitel'/12931, l='world', x=-16.70, y=69.00, z=8.01](Osvoitel at -16.69999998807907,69.0,8.01046683473538), EntityPlayerMP['sashanok'/16985, l='world', x=45.49, y=65.00, z=-72.19](sashanok at 45.491262986137876,65.0,-72.1908205721441), EntityPlayerMP['KillerLordMLG'/363, l='world', x=47.73, y=65.00, z=-67.04](KillerLordMLG at 47.72502101730664,65.0,-67.03710531653024), EntityPlayerMP['FeaTHerS37'/18486, l='world', x=-1459.67, y=111.00, z=221.16](FeaTHerS37 at -1459.6674000149142,111.0,221.1612673168655), EntityPlayerMP['waxr3'/20459, l='world', x=-7.61, y=65.00, z=24.70](waxr3 at -7.60670561821899,65.0,24.699999988079064), EntityPlayerMP['Just4iter'/20066, l='world', x=759.74, y=66.25, z=-795.89](Just4iter at 759.7384504337213,66.2528970092535,-795.8926005415153), EntityPlayerMP['K4RL'/8504, l='world', x=844.36, y=75.00, z=-751.97](K4RL at 844.3645901488327,75.0,-751.9668888808923), EntityPlayerMP['MegaSkill'/27727, l='world', x=-2.44, y=65.00, z=14.75](MegaSkill at -2.4351400537996724,65.0,14.750538183680497), EntityPlayerMP['MoJIuTBEHHuK'/26139, l='world', x=-900.10, y=65.00, z=1004.25](MoJIuTBEHHuK at -900.1031137533805,65.0,1004.2475532821612), EntityPlayerMP['IBTrake'/28508, l='world', x=760.22, y=66.25, z=-795.09](IBTrake at 760.2164374251267,66.25034204125404,-795.0861092857551), EntityPlayerMP['TemaGamerYT'/28559, l='world', x=846.35, y=75.00, z=-752.72](TemaGamerYT at 846.3506997766292,75.0,-752.7164134902354), EntityPlayerMP['kaloha'/556, l='world', x=44.44, y=65.00, z=-70.86](kaloha at 44.442617076133445,65.0,-70.8586186340606), EntityPlayerMP['Raichu228'/29077, l='world', x=-23.22, y=65.00, z=1.16](Raichu228 at -23.224628788285983,65.0,1.1635871396309072), EntityPlayerMP['tander'/28357, l='world', x=1070.15, y=65.00, z=-866.33](tander at 1070.1483572937866,65.0,-866.3257056530406), EntityPlayerMP['GoldWardeN'/10583, l='world', x=1332.02, y=65.00, z=-733.87](GoldWardeN at 1332.0180185219112,65.0,-733.8713708097887), EntityPlayerMP['_ProkoP_'/734, l='world', x=-5.21, y=65.00, z=14.78](_ProkoP_ at -5.214562503859456,65.0,14.775708951024042), EntityPlayerMP['KoTeE'/26200, l='world', x=328.09, y=65.00, z=1427.32](KoTeE at 328.0928396574021,65.0,1427.3173900371369), EntityPlayerMP['OneKiller'/25769, l='world', x=-1.42, y=65.00, z=14.20](OneKiller at -1.4239454202331916,65.0,14.202062987925522)]
Chunk stats: ServerChunkCache: 3934 Drop: 0
Level seed: 27594263
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 
Level spawn location: World: (-267,22,-14), Chunk: (at 5,1,2 in -17,-1; contains blocks -272,0,-16 to -257,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 69769597 game time, 73590794 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 22389 (now: false), thunder time: 19945 (now: false)
Level game mode: Game mode: adventure (ID 2). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:954)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
at java.lang.Thread.run(Thread.java:748)

-- System Details --
Details:
Minecraft Version: 1.7.10
KCauldron Version: pw.prok:KCauldron:1.7.10-1614.201 Official
Plugins: AutoSaveWorld, nGuard, WorldEdit, AutoRespawnPlus, AntiAd, Essentials, VoxelSniper, PermissionsEx, ClearLag, McAgeAddloot, AutoMessage, WorldBorder, Trading, Vault, HideStream, ChatManager, WorldGuard, AntiLog, PhatLoots, WGExtender, ShoppingCartReloaded
Disabled Plugins: 
Operating System: Linux (amd64) version 3.13.0-132-generic
Java Version: 1.8.0_151, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1221184448 bytes (1164 MB) / 1929904128 bytes (1840 MB) up to 3773300736 bytes (3598 MB)
JVM Flags: 1 total; -Xmx4048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 16 mods loaded, 16 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (KCauldron-1.7.10-1614.201.jar) 
UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (KCauldron-1.7.10-1614.201.jar) 
UCHIJAAAA kimagine{0.2} [KImagine] (minecraft.jar) 
UCHIJAAAA PlayerAPI{1.3} [Player API] (minecraft.jar) 
UCHIJAAAA SmartCore{1.0.2} [Smart Core] (minecraft.jar) 
UCHIJAAAA CarpentersBlocks{3.3.8.1} [Carpenter's Blocks] (CarpentersBlocks.jar) 
UCHIJAAAA customnpcs{1.7.10b} [CustomNpcs] (Custom-NPCs-Mod-1.7.10.jar) 
UCHIJAAAA dcs{1.0.1} [dcs] (Debug_Server1.1.jar) 
UCHIJAAAA flansmod{4.10.0} [Flan's Mod] (Flan.jar) 
UCHIJAAAA McAgeAddloot{1.0} [McAgeAddloot] (Friends_Server.jar) 
UCHIJAAAA gvc{0.6.1} [�aGliby's�f Voice Chat Mod] (GlibysVC-1.7.10-0.6.2a.jar) 
UCHIJAAAA TeNNoX_KeyAndCodeLock{1.4} [KeyAndCodeLock] (KeyAndCodeLock_1.7.10_1.4.jar) 
UCHIJAAAA mcheli{0.10.8} [MC Helicopter] (mcheli) 
UCHIJAAAA SmartMoving{15.5} [Smart Moving] (SmartMoving-1.7.10-15.5.jar) 
UCHIJAAAA SmartRender{2.1} [Smart Render] (SmartRender-1.7.10-2.1.jar) 
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 22 / 50; [EntityPlayerMP['Snaiper33'/221, l='world', x=841.65, y=76.00, z=-761.25](Snaiper33 at 841.6517707114236,76.0,-761.2524994098269), EntityPlayerMP['FoReVeR'/6831, l='world', x=18.65, y=65.00, z=12.44](FoReVeR at 18.6505985570304,65.0,12.441725185758543), EntityPlayerMP['_SteelRay_'/10055, l='world', x=-9.15, y=65.00, z=-8.94](_SteelRay_ at -9.146050746000318,65.0,-8.938816208468007), EntityPlayerMP['Alina_kit'/12432, l='world', x=-1628.05, y=70.00, z=1754.86](Alina_kit at -1628.0518435751308,70.0,1754.8634561818071), EntityPlayerMP['Osvoitel'/12931, l='world', x=-16.70, y=69.00, z=8.01](Osvoitel at -16.69999998807907,69.0,8.01046683473538), EntityPlayerMP['sashanok'/16985, l='world', x=45.49, y=65.00, z=-72.19](sashanok at 45.491262986137876,65.0,-72.1908205721441), EntityPlayerMP['KillerLordMLG'/363, l='world', x=47.73, y=65.00, z=-67.04](KillerLordMLG at 47.72502101730664,65.0,-67.03710531653024), EntityPlayerMP['FeaTHerS37'/18486, l='world', x=-1459.67, y=111.00, z=221.16](FeaTHerS37 at -1459.6674000149142,111.0,221.1612673168655), EntityPlayerMP['waxr3'/20459, l='world', x=-7.61, y=65.00, z=24.70](waxr3 at -7.60670561821899,65.0,24.699999988079064), EntityPlayerMP['Just4iter'/20066, l='world', x=759.74, y=66.25, z=-795.89](Just4iter at 759.7384504337213,66.2528970092535,-795.8926005415153), EntityPlayerMP['K4RL'/8504, l='world', x=844.36, y=75.00, z=-751.97](K4RL at 844.3645901488327,75.0,-751.9668888808923), EntityPlayerMP['MegaSkill'/27727, l='world', x=-2.44, y=65.00, z=14.75](MegaSkill at -2.4351400537996724,65.0,14.750538183680497), EntityPlayerMP['MoJIuTBEHHuK'/26139, l='world', x=-900.10, y=65.00, z=1004.25](MoJIuTBEHHuK at -900.1031137533805,65.0,1004.2475532821612), EntityPlayerMP['IBTrake'/28508, l='world', x=760.22, y=66.25, z=-795.09](IBTrake at 760.2164374251267,66.25034204125404,-795.0861092857551), EntityPlayerMP['TemaGamerYT'/28559, l='world', x=846.35, y=75.00, z=-752.72](TemaGamerYT at 846.3506997766292,75.0,-752.7164134902354), EntityPlayerMP['kaloha'/556, l='world', x=44.44, y=65.00, z=-70.86](kaloha at 44.442617076133445,65.0,-70.8586186340606), EntityPlayerMP['Raichu228'/29077, l='world', x=-23.22, y=65.00, z=1.16](Raichu228 at -23.224628788285983,65.0,1.1635871396309072), EntityPlayerMP['tander'/28357, l='world', x=1070.15, y=65.00, z=-866.33](tander at 1070.1483572937866,65.0,-866.3257056530406), EntityPlayerMP['GoldWardeN'/10583, l='world', x=1332.02, y=65.00, z=-733.87](GoldWardeN at 1332.0180185219112,65.0,-733.8713708097887), EntityPlayerMP['_ProkoP_'/734, l='world', x=-5.21, y=65.00, z=14.78](_ProkoP_ at -5.214562503859456,65.0,14.775708951024042), EntityPlayerMP['KoTeE'/26200, l='world', x=328.09, y=65.00, z=1427.32](KoTeE at 328.0928396574021,65.0,1427.3173900371369), EntityPlayerMP['OneKiller'/25769, l='world', x=-1.42, y=65.00, z=14.20](OneKiller at -1.4239454202331916,65.0,14.202062987925522)]
Is Modded: Definitely; Server brand changed to 'kcauldron,cauldron,craftbukkit,mcpc,fml,forge'
Type: Dedicated Server (map_server.txt)

timaxa007

Модератор
5,831
409
672
1. Код не мой, вряд-ли.
2. Смогу-ли помочь, я свои сиденья не сделал, а помочь с чужими, вряд-ли.
3. По ошибке, у тебя там используется какой-то массив, который возможно пустой.
 

timaxa007

Модератор
5,831
409
672
Точно не знаю. Где ты вызываешь спаван какой-то техники убедись, что ты даешь нужный EntityDriveable и с хорошим getDriveableType(), так как из него берётся массив seats[id].
 
Сверху