うーむ、今コードを見た限りではなんともわかりやすい原因(わたしの怠惰、クラスチェック漏れ)ではあったんですが、いかんせん現状コンパイルできる開発環境を維持していないもので、解決できるのはだいぶ未来のことになりそうです…slime さんが書きました: ↑2020年6月14日(日) 00:31 初めまして。
「○○軍のヘルメット」以外の頭防具を装備した状態で兵士を攻撃した際にクラッシュしました。
より具体的には、バニラの頭装備、もしくはプラスチックの頭装備を身に着けた状態で、サバイバルモードで兵士を直接攻撃すると発生しました。
頭以外の装備はつけていても問題ないようです。
大好きなmodなので、返信だけでもいただけると幸いです。
環境は
forge-1.7.10-10.13.4.1614
ww2一式
のみです(Optifine等の軽量化modも入れていません)。
以下、クラッシュレポートです。SpoilerShow---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.
Time: 20/06/14 0:11
Description: Ticking entity
java.lang.ClassCastException: net.minecraft.item.ItemArmor cannot be cast to hmgww2.items.ItemIFFArmor
at hmgww2.entity.EntityBases.is_this_entity_friend(EntityBases.java:720)
at hmggvcmob.ai.AIHurtByTarget.func_75249_e(AIHurtByTarget.java:47)
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:94)
at net.minecraft.entity.EntityLiving.func_70619_bc(EntityLiving.java:537)
at hmgww2.entity.EntityBases.func_70619_bc(EntityBases.java:185)
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1774)
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:367)
at hmgww2.entity.EntityBases.func_70636_d(EntityBases.java:687)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1611)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:206)
at hmgww2.entity.EntityBases.func_70071_h_(EntityBases.java:197)
at hmgww2.entity.EntityUSA_S.func_70071_h_(EntityUSA_S.java:89)
at net.minecraft.world.World.func_72866_a(World.java:2070)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:648)
at net.minecraft.world.World.func_72870_g(World.java:2034)
at net.minecraft.world.World.func_72939_s(World.java:1887)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at hmgww2.entity.EntityBases.is_this_entity_friend(EntityBases.java:720)
at hmggvcmob.ai.AIHurtByTarget.func_75249_e(AIHurtByTarget.java:47)
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:94)
at net.minecraft.entity.EntityLiving.func_70619_bc(EntityLiving.java:537)
at hmgww2.entity.EntityBases.func_70619_bc(EntityBases.java:185)
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1774)
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:367)
at hmgww2.entity.EntityBases.func_70636_d(EntityBases.java:687)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1611)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:206)
at hmgww2.entity.EntityBases.func_70071_h_(EntityBases.java:197)
at hmgww2.entity.EntityUSA_S.func_70071_h_(EntityUSA_S.java:89)
at net.minecraft.world.World.func_72866_a(World.java:2070)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:648)
at net.minecraft.world.World.func_72870_g(World.java:2034)
-- Entity being ticked --
Details:
Entity Type: HMGGVCWW2.EntityUSA_S (hmgww2.entity.EntityUSA_S)
Entity ID: 248
Entity Name: アメリカ軍 歩兵
Entity's Exact location: -86.69, 105.64, 155.33
Entity's Block location: World: (-87,105,155), Chunk: (at 9,6,11 in -6,9; contains blocks -96,0,144 to -81,255,159), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Entity's Momentum: 0.18, 0.19, 0.08
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1887)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
-- Affected level --
Details:
Level name: 新規ワールドwwii
All players: 1 total; [EntityPlayerMP['slime_mana'/314, l='新規ワールドwwii', x=-88.44, y=105.00, z=154.56]]
Chunk stats: ServerChunkCache: 803 Drop: 0
Level seed: 2628101095353779557
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (0,64,252), Chunk: (at 0,4,12 in 0,15; contains blocks 0,0,240 to 15,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2069 game time, 2069 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 150974 (now: false), thunder time: 153540 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 674734288 bytes (643 MB) / 1442840576 bytes (1376 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 9 mods loaded, 9 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] (forge-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJAAAA HandmadeGuns{1.7.x-srg-1} [HandMadeGunsModEX] (HMG-EX12.33.jar)
UCHIJAAAA GVCGuns{1.7.x-srg-1} [GVCGuns] (GVC-HD12.33.jar)
UCHIJAAAA HMVehicle{1.7.x-srg-1} [HMVehicle] (GVC-HD12.33.jar)
UCHIJAAAA GVCMob{HD11} [Guerrilla vs Command mod : High Difficulity version] (GVC-HD12.33.jar)
UCHIJAAAA DungeonGeneratorBase{1.7.x-srg-1} [DungeonGeneratorBase] (GVCDangeonsBase-1.0.jar)
UCHIJAAAA HMGGVCWW2{1.7.x-srg-1} [HMGGVCWW2] (WW2-1.0.jar)
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['slime_mana'/314, l='新規ワールドwwii', x=-88.44, y=105.00, z=154.56]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
とりあえず、頭装備はナシか各国軍でお願いします