Хостинг серверов Minecraft playvds.com
  1. Вы находитесь в русском сообществе Bukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на русский язык плагины наших собратьев из других стран.
    Dismiss Notice

Мод IC2 source code

Discussion in 'Модификации клиента' started by MrOrange, Mar 7, 2014.

  1. Автор темы
    MrOrange

    MrOrange Активный участник Пользователь

    Trophy Points:
    68
    Имя в Minecraft:
    MrOrange
    Всем привет. Наверное многие хотели поиметь адекватный рабочий код IC2. Так вот, он у меня есть, но в нем есть некоторые ошибки (нет, не отсутствие пакетов Nei и CraftGuide, а нескольк другие). Есть желающие помочь пофиксить в этих маленьких местах код? Ошибок совсем не много, но сам я их местами не догоняю, поэтому обратился сюда. Заинтересованные - в ЛС.
     
  2. Хостинг MineCraft
    <
  3. HoShiMin

    HoShiMin Старожил Пользователь

    Trophy Points:
    173
    Всегда хотел поиметь код.
     
    YaLTeR, Hephest, Larin and 4 others like this.
  4. AlexMerser

    AlexMerser Старожил Пользователь

    Trophy Points:
    173
    во все отверстия
     
  5. Автор темы
    MrOrange

    MrOrange Активный участник Пользователь

    Trophy Points:
    68
    Имя в Minecraft:
    MrOrange
    А то :D
     
  6. alexandrage

    alexandrage Администратор

    Trophy Points:
    173
    Skype:
    alexandr0116
    А что там иметь то? Есть же добфускат версия. На крайняк bon никто еще не отменял.
    На худой конец наш универсальный байт код напильник на питоне.
    Еклипс? Не не слышал, только блокнот, только хардкор :D.
    Code:
    version 50 0
    .source IC2.java
    .class super public ic2/core/IC2
    .super java/lang/Object
    .implements cpw/mods/fml/common/ITickHandler
    .implements cpw/mods/fml/common/IWorldGenerator
    .implements cpw/mods/fml/common/IFuelHandler
    .implements cpw/mods/fml/common/network/IConnectionHandler
    .implements cpw/mods/fml/common/IPlayerTracker
    .inner abstract static annotation interface public EventHandler cpw/mods/fml/common/Mod$EventHandler cpw/mods/fml/common/Mod
    .inner abstract static interface public Entry java/util/Map$Entry java/util/Map
    .inner static public Load net/minecraftforge/event/world/WorldEvent$Load net/minecraftforge/event/world/WorldEvent
    .inner static public Unload net/minecraftforge/event/world/WorldEvent$Unload net/minecraftforge/event/world/WorldEvent
    .inner static public Post [_56] net/minecraftforge/client/event/TextureStitchEvent
    .inner static public Watch [_61] net/minecraftforge/event/world/ChunkWatchEvent
    .inner static public OreRegisterEvent [_66] net/minecraftforge/oredict/OreDictionary
    .inner static public SpecialSpawn [_71] [_73]
    .inner abstract static annotation interface public SidedPacketHandler [_76] cpw/mods/fml/common/network/NetworkMod
    .inner  [0] ic2/core/IC2$1 [0]
    .inner enum static final public Type net/minecraftforge/common/BiomeDictionary$Type net/minecraftforge/common/BiomeDictionary
    .runtimevisible annotation Lcpw/mods/fml/common/Mod;
        modid =  string [_18]
        name =  string [_20]
        version =  string [_22]
        useMetadata =  boolean 1
        certificateFingerprint =  string [_26]
    .end annotation
    .runtimevisible annotation Lcpw/mods/fml/common/network/NetworkMod;
        clientSideRequired =  boolean 1
            clientPacketHandlerSpec = annotation [_30]
                channels =  array
                .end array
                    string [_32]
                packetHandler =  class Lic2/core/network/NetworkManagerClient;
            .end annotation
            serverPacketHandlerSpec = annotation [_30]
                channels =  array
                .end array
                    string [_32]
                packetHandler =  class Lic2/core/network/NetworkManager;
            .end annotation
    .end annotation
    
    .field static public final VERSION Ljava/lang/String; = '2.0.397-experimental'
    .field static private instance Lic2/core/IC2;
    .field static public platform Lic2/core/Platform;
    .runtimevisible annotation Lcpw/mods/fml/common/SidedProxy;
        clientSide =  string [_96]
        serverSide =  string [_98]
    .end annotation
    .end field
    
    .field static public network Lic2/core/network/NetworkManager;
    .runtimevisible annotation Lcpw/mods/fml/common/SidedProxy;
        clientSide =  string [_100]
        serverSide =  string [_101]
    .end annotation
    .end field
    
    .field static public keyboard Lic2/core/util/Keyboard;
    .runtimevisible annotation Lcpw/mods/fml/common/SidedProxy;
        clientSide =  string [_104]
        serverSide =  string [_105]
    .end annotation
    .end field
    
    .field static public audioManager Lic2/core/audio/AudioManager;
    .runtimevisible annotation Lcpw/mods/fml/common/SidedProxy;
        clientSide =  string [_108]
        serverSide =  string [_109]
    .end annotation
    .end field
    
    .field static public textureIndex Lic2/core/util/TextureIndex;
    .runtimevisible annotation Lcpw/mods/fml/common/SidedProxy;
        clientSide =  string [_112]
        serverSide =  string [_113]
    .end annotation
    .end field
    
    .field static public log Ljava/util/logging/Logger;
    .field static public achievements Lic2/core/IC2Achievements;
    .field static public cableRenderId I
    .field static public fenceRenderId I
    .field static public miningPipeRenderId I
    .field static public luminatorRenderId I
    .field static public cropRenderId I
    .field static public random Ljava/util/Random;
    .field static public windStrength I
    .field static public windTicker I
    .field static public valuableOres Ljava/util/Map;
    .signature [_130]
    .end field
    
    .field static public fluidUuMatter Lnet/minecraftforge/fluids/Fluid;
    .field static public blockFluidUuMatter Lnet/minecraft/block/Block;
    .field static public fluidCf Lnet/minecraftforge/fluids/Fluid;
    .field static public blockFluidCf Lnet/minecraft/block/Block;
    .field static public fluidcoolant Lnet/minecraftforge/fluids/Fluid;
    .field static public blockFluidcoolant Lnet/minecraft/block/Block;
    .field static public enableCraftingBucket Z
    .field static public enableCraftingCoin Z
    .field static public enableCraftingGlowstoneDust Z
    .field static public enableCraftingGunpowder Z
    .field static public enableCraftingITnt Z
    .field static public enableCraftingNuke Z
    .field static public enableCraftingRail Z
    .field static public enableDynamicIdAllocation Z
    .field static public enableLoggingWrench Z
    .field static public enableSecretRecipeHiding Z
    .field static public enableQuantumSpeedOnSprint Z
    .field static public enableMinerLapotron Z
    .field static public enableTeleporterInventory Z
    .field static public enableBurningScrap Z
    .field static public enableOreDictCircuit Z
    .field static public enableWorldGenTreeRubber Z
    .field static public enableWorldGenOreCopper Z
    .field static public enableWorldGenOreTin Z
    .field static public enableWorldGenOreUranium Z
    .field static public enableWorldGenOreLead Z
    .field static public enableEnergyInStorageBlockItems Z
    .field static public percentualEnergyInStorageBlockItems I
    .field static public explosionPowerNukeMax F
    .field static public explosionPowerReactorMax F
    .field static public energyGeneratorBase I
    .field static public energyGeneratorGeo I
    .field static public energyGeneratorWater I
    .field static public energyGeneratorSolar I
    .field static public energyGeneratorWind I
    .field static public energyGeneratorNuclear I
    .field static public energyGeneratorSemiOil I
    .field static public energyGeneratorSemiFuel I
    .field static public energyGeneratorSemiBiomass I
    .field static public energyGeneratorSemiBioethanol I
    .field static public MatterfabBaseUuCost I
    .field static public suddenlyHoes Z
    .field static public seasonal Z
    .field static public oreDensityFactor F
    .field static public disableEnderChest Z
    .field static public Advreactorcolling Z
    .field static public initialized Z
    .field static public runtimeIdProperties Ljava/util/Properties;
    .field static public tabIC2 Lic2/core/CreativeTabIC2;
    .field static private blockedIds Ljava/util/Set;
    .signature Ljava/util/Set<Ljava/lang/Integer;>;
    .end field
    
    .field static public final networkProtocolVersion I = 1
    .field static public final textureDomain Ljava/lang/String; = 'ic2'
    .field static public final setBlockNotify I = 1
    .field static public final setBlockUpdate I = 2
    .field static public final setBlockNoUpdateFromClient I = 4
    .field public tickrateTracker Lic2/core/TickrateTracker;
    .field public final threadPool Ljava/util/concurrent/ExecutorService;
    .field synthetic static final $assertionsDisabled Z
    
    .method public <init> : ()V
        .limit stack 5
        .limit locals 1
        aload_0
        invokespecial java/lang/Object <init> ()V
        aload_0
        new ic2/core/TickrateTracker
        dup
        invokespecial ic2/core/TickrateTracker <init> ()V
        putfield ic2/core/IC2 tickrateTracker Lic2/core/TickrateTracker;
        aload_0
        new ic2/core/util/PriorityExecutor
        dup
        invokestatic java/lang/Runtime getRuntime ()Ljava/lang/Runtime;
        invokevirtual java/lang/Runtime availableProcessors ()I
        iconst_2
        invokestatic java/lang/Math max (II)I
        invokespecial ic2/core/util/PriorityExecutor <init> (I)V
        putfield ic2/core/IC2 threadPool Ljava/util/concurrent/ExecutorService;
        aload_0
        dup
        putstatic ic2/core/IC2 instance Lic2/core/IC2;
        putstatic ic2/api/info/Info ic2ModInstance Ljava/lang/Object;
        return
    .end method
    
    .method static public getInstance : ()Lic2/core/IC2;
        .limit stack 1
        .limit locals 0
        getstatic ic2/core/IC2 instance Lic2/core/IC2;
        areturn
    .end method
    Продолжение в архиве
     

    Attached Files:

    • IC2.zip
      File size:
      305.9 KB
      Views:
      44
    Last edited: Mar 8, 2014
  7. Автор темы
    MrOrange

    MrOrange Активный участник Пользователь

    Trophy Points:
    68
    Имя в Minecraft:
    MrOrange
    Подскажи, чейт вообще такое? :D Ну и мне бы хотелось начисто его разобрать. У меня ошибки в тайл энтити шахтера и все.
     
  8. Автор темы
    MrOrange

    MrOrange Активный участник Пользователь

    Trophy Points:
    68
    Имя в Minecraft:
    MrOrange
    alexandrage, да и кстати говоря. Взял деобф версию, разобрал, но ошибка в тайл энтити майнера меня все так же беспокоит второй день. Не могу ее исправить.

    Ругается на .getPrivateValue, с отсылкой на ReflectionHelper.

    Стактрейс:
    Code:
    2014-03-08 09:08:45 [INFO] [STDOUT] ---- Minecraft Crash Report ----
    2014-03-08 09:08:45 [INFO] [STDOUT] // Everything's going to plan. No, really, that was supposed to happen.
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] Time: 08.03.14 9:08
    2014-03-08 09:08:45 [INFO] [STDOUT] Description: Ticking tile entity
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] java.lang.Error: Unresolved compilation problems:
    2014-03-08 09:08:45 [INFO] [STDOUT]    The method getPrivateValue(Class<? super E>, E, String...) in the type ReflectionHelper is not applicable for the arguments (Class<ForgeHooks>, Object, String[])
    2014-03-08 09:08:45 [INFO] [STDOUT]    The method getPrivateValue(Class<? super E>, E, String...) in the type ReflectionHelper is not applicable for the arguments (Class<ForgeHooks>, Object, String[])
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.canMine(TileEntityMiner.java:431)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.mineBlock(TileEntityMiner.java:335)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.digDown(TileEntityMiner.java:201)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.work(TileEntityMiner.java:134)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.updateEntity(TileEntityMiner.java:104)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.world.World.updateEntities(World.java:2209)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
    2014-03-08 09:08:45 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] -- Head --
    2014-03-08 09:08:45 [INFO] [STDOUT] Stacktrace:
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.canMine(TileEntityMiner.java:431)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.mineBlock(TileEntityMiner.java:335)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.digDown(TileEntityMiner.java:201)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.work(TileEntityMiner.java:134)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at ic2.core.block.machine.tileentity.TileEntityMiner.updateEntity(TileEntityMiner.java:104)
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] -- Tile entity being ticked --
    2014-03-08 09:08:45 [INFO] [STDOUT] Details:
    2014-03-08 09:08:45 [INFO] [STDOUT]    Name: Miner // ic2.core.block.machine.tileentity.TileEntityMiner
    2014-03-08 09:08:45 [INFO] [STDOUT]    Block type: ID #250 (blockMachine // ic2.core.block.machine.BlockMachine)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Block data value: 7 / 0x7 / 0b0111
    2014-03-08 09:08:45 [INFO] [STDOUT]    Block location: World: (238,70,260), Chunk: (at 14,4,4 in 14,16; contains blocks 224,0,256 to 239,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Actual block type: ID #250 (blockMachine // ic2.core.block.machine.BlockMachine)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Actual block data value: 7 / 0x7 / 0b0111
    2014-03-08 09:08:45 [INFO] [STDOUT] Stacktrace:
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.world.World.updateEntities(World.java:2209)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] -- Affected level --
    2014-03-08 09:08:45 [INFO] [STDOUT] Details:
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level name: New World
    2014-03-08 09:08:45 [INFO] [STDOUT]    All players: 1 total; [EntityPlayerMP['Player373'/332, l='New World', x=238,45, y=69,00, z=262,32]]
    2014-03-08 09:08:45 [INFO] [STDOUT]    Chunk stats: ServerChunkCache: 625 Drop: 0
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level seed: -7966183875595927773
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level generator: ID 00 - default, ver 1. Features enabled: true
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level generator options:
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level spawn location: World: (228,64,252), Chunk: (at 4,4,12 in 14,15; contains blocks 224,0,240 to 239,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level time: 7187 game time, 7187 day time
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level dimension: 0
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level storage version: 0x04ABD - Anvil
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level weather: Rain time: 104508 (now: false), thunder time: 158569 (now: false)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    2014-03-08 09:08:45 [INFO] [STDOUT] Stacktrace:
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
    2014-03-08 09:08:45 [INFO] [STDOUT]    at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
    2014-03-08 09:08:45 [INFO] [STDOUT]
    2014-03-08 09:08:45 [INFO] [STDOUT] -- System Details --
    2014-03-08 09:08:45 [INFO] [STDOUT] Details:
    2014-03-08 09:08:45 [INFO] [STDOUT]    Minecraft Version: 1.6.4
    2014-03-08 09:08:45 [INFO] [STDOUT]    Operating System: Windows 7 (amd64) version 6.1
    2014-03-08 09:08:45 [INFO] [STDOUT]    Java Version: 1.7.0_51, Oracle Corporation
    2014-03-08 09:08:45 [INFO] [STDOUT]    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    2014-03-08 09:08:45 [INFO] [STDOUT]    Memory: 756565576 bytes (721 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    2014-03-08 09:08:45 [INFO] [STDOUT]    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    2014-03-08 09:08:45 [INFO] [STDOUT]    AABB Pool Size: 3700 (207200 bytes; 0 MB) allocated, 3342 (187152 bytes; 0 MB) used
    2014-03-08 09:08:45 [INFO] [STDOUT]    Suspicious classes: FML and Forge are installed
    2014-03-08 09:08:45 [INFO] [STDOUT]    IntCache: cache: 0, tcache: 0, allocated: 6, tallocated: 62
    2014-03-08 09:08:45 [INFO] [STDOUT]    FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953
    2014-03-08 09:08:45 [INFO] [STDOUT]    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    BuildCraft|Core{@VERSION@} [BuildCraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    BuildCraft|Builders{@VERSION@} [BuildCraft Builders] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    BuildCraft|Energy{@VERSION@} [BuildCraft Energy] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    BuildCraft|Factory{@VERSION@} [BuildCraft Factory] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    BuildCraft|Transport{@VERSION@} [Buildcraft Transport] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    BuildCraft|Silicon{@VERSION@} [BuildCraft Silicon] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    IC2{2.0.397-experimental} [IndustrialCraft 2] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    mObtb{Pre-Alpha v0.1} [mObtb mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    2014-03-08 09:08:45 [INFO] [STDOUT]    Profiler Position: N/A (disabled)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Vec3 Pool Size: 828 (46368 bytes; 0 MB) allocated, 619 (34664 bytes; 0 MB) used
    2014-03-08 09:08:45 [INFO] [STDOUT]    Player Count: 1 / 8; [EntityPlayerMP['Player373'/332, l='New World', x=238,45, y=69,00, z=262,32]]
    2014-03-08 09:08:45 [INFO] [STDOUT]    Type: Integrated Server (map_client.txt)
    2014-03-08 09:08:45 [INFO] [STDOUT]    Is Modded: Definitely; Client brand changed to 'fml,forge'
    2014-03-08 09:08:45 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-03-08_09.08.45-server.txt
    2014-03-08 09:08:45 [INFO] [Minecraft-Server] Saving worlds
    2014-03-08 09:08:45 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
    2014-03-08 09:08:45 [INFO] [Minecraft-Server] Stopping server
    2014-03-08 09:08:45 [INFO] [Minecraft-Server] Saving players
    2014-03-08 09:08:45 [INFO] [Minecraft-Server] Saving worlds
    2014-03-08 09:08:45 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
    AL lib: (EE) alc_cleanup: 1 device not closed
    

    Code:
      public boolean canMine(int x, int y, int z) {
          int id = this.worldObj.getBlockId(x, y, z);
          int meta = this.worldObj.getBlockMetadata(x, y, z);
          if(id == 0) {
            return true;
          } else if(id != Ic2Items.miningPipe.itemID && id != Ic2Items.miningPipeTip.itemID && id != Block.chest.blockID) {
            if(Block.blocksList[id] instanceof IFluidBlock && this.isPumpConnected(x, y, z)) {
                return true;
            } else if((id == Block.waterMoving.blockID || id == Block.waterStill.blockID || id == Block.lavaMoving.blockID || id == Block.lavaStill.blockID) && this.isPumpConnected(x, y, z)) {
                return true;
            } else {
                Block block = Block.blocksList[id];
                if(block.getBlockHardness(this.worldObj, x, y, z) < 0.0F) {
                  return false;
                } else if(block.canCollideCheck(meta, false) && block.blockMaterial.isToolNotRequired()) {
                  return true;
                } else if(id == Block.web.blockID) {
                  return true;
                } else if(!this.drillSlot.isEmpty()) {
                  try {
                      HashMap e = (HashMap)ReflectionHelper.getPrivateValue(ForgeHooks.class, (Object)null, new String[]{"toolClasses"});
                      List tc = (List)e.get(Integer.valueOf(this.drillSlot.get().itemID));
                      if(tc == null) {
                        return this.drillSlot.get().canHarvestBlock(block);
                      } else {
                        Object[] ta = tc.toArray();
                        String cls = (String)ta[0];
                        int hvl = ((Integer)ta[1]).intValue();
                        HashMap toolHarvestLevels = (HashMap)ReflectionHelper.getPrivateValue(ForgeHooks.class, (Object)null, new String[]{"toolHarvestLevels"});
                        Integer bhl = (Integer)toolHarvestLevels.get(Arrays.asList(new Serializable[]{Integer.valueOf(block.blockID), Integer.valueOf(meta), cls}));
                        return bhl == null?this.drillSlot.get().canHarvestBlock(block):(bhl.intValue() > hvl?false:this.drillSlot.get().canHarvestBlock(block));
                      }
                  } catch (Throwable var14) {
                      return false;
                  }
                } else {
                  return false;
                }
            }
          } else {
            return false;
          }
      }
     
  9. Shevchik

    Shevchik Старожил Пользователь

    Trophy Points:
    173
    Имя в Minecraft:
    _Shevchik_
    HashMap e = (HashMap)ReflectionHelper.getPrivateValue(ForgeHooks.class, (Object)null, new String[]{"toolClasses"});

    (Object)null ----? WAT, там просто null.
     
  10. Автор темы
    MrOrange

    MrOrange Активный участник Пользователь

    Trophy Points:
    68
    Имя в Minecraft:
    MrOrange
    Так как это вот пофиксить? Сорсня ругается, а без шахтера остаться не хочется)
     

Share This Page