Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mine and Blade crash on arrow pick up #4

Closed
Goujer opened this issue Aug 9, 2016 · 2 comments
Closed

Mine and Blade crash on arrow pick up #4

Goujer opened this issue Aug 9, 2016 · 2 comments
Labels

Comments

@Goujer
Copy link
Owner

Goujer commented Aug 9, 2016

---- Minecraft Crash Report ----
// There are four lights!

Time: 8/3/16 9:20 AM
Description: Ticking entity

java.lang.ClassCastException: littleMaidMobX.inventory.InventoryLittleMaid cannot be cast to mods.battlegear2.api.core.InventoryPlayerBattle
at mods.battlegear2.items.arrows.AbstractMBArrow.tryPickArrow(AbstractMBArrow.java:87)
at mods.battlegear2.items.arrows.AbstractMBArrow.func_70100_b_(AbstractMBArrow.java:67)
at littleMaidMobX.entity.EntityLittleMaid.func_70636_d(EntityLittleMaid.java:1790)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1611)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:272)
at littleMaidMobX.entity.EntityLittleMaid.func_70071_h_(EntityLittleMaid.java:1989)
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 WorldServerOF.func_72870_g(WorldServerOF.java:347)
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:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:396)
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 mods.battlegear2.items.arrows.AbstractMBArrow.tryPickArrow(AbstractMBArrow.java:87)
at mods.battlegear2.items.arrows.AbstractMBArrow.func_70100_b_(AbstractMBArrow.java:67)
at littleMaidMobX.entity.EntityLittleMaid.func_70636_d(EntityLittleMaid.java:1790)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1611)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:272)
at littleMaidMobX.entity.EntityLittleMaid.func_70071_h_(EntityLittleMaid.java:1989)
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 WorldServerOF.func_72870_g(WorldServerOF.java:347)
at net.minecraft.world.World.func_72939_s(World.java:1887)

-- Entity being ticked --
Details:
Entity Type: lmmx.LittleMaid (littleMaidMobX.entity.EntityLittleMaid)
Entity ID: 286473
Entity Name: entity.lmmx.LittleMaid.name
Entity's Exact location: -168.12, 93.00, 299.94
Entity's Block location: World: (-169,93,299), Chunk: (at 7,5,11 in -11,18; contains blocks -176,0,288 to -161,255,303), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Entity's Momentum: -0.05, -0.08, -0.09
Stacktrace:
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)

-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['Mariku_Junrei'/111353, l='New World', x=-169.23, y=93.00, z=297.63]]
Chunk stats: ServerChunkCache: 514 Drop: 0
Level seed: -229126503491401923
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (-50,64,248), Chunk: (at 14,4,8 in -4,15; contains blocks -64,0,240 to -49,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 6181 game time, 6181 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 147327 (now: false), thunder time: 68266 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:396)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 3552085912 bytes (3387 MB) / 5154013184 bytes (4915 MB) up to 5154013184 bytes (4915 MB)
JVM Flags: 30 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx5G -Xms5G -Xmn2G -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseNUMA -XX:+CMSParallelRemarkEnabled -XX:MaxTenuringThreshold=15 -XX:MaxGCPauseMillis=30 -XX:GCPauseIntervalMillis=500 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:+UseFastAccessorMethods -XX:+UseCompressedOops -XX:+OptimizeStringConcat -XX:+AggressiveOpts -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:SoftRefLRUPolicyMSPerMB=10000 -XX:ParallelGCThreads=10 -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseBiasedLocking -Xincgc
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 65, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 Optifine OptiFine_1.7.10_HD_U_D6 64 mods loaded, 64 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAAAAAAA mcp{9.05} Minecraft Coder Pack
UCHIJAAAAAAAAA FML{7.10.99.99} Forge Mod Loader
UCHIJAAAAAAAAA Forge{10.13.4.1614} Minecraft Forge
UCHIJAAAAAAAAA Aroma1997Core{1.0.2.16} Aroma1997Core
UCHIJAAAAAAAAA CodeChickenCore{1.0.7.47} CodeChicken Core
UCHIJAAAAAAAAA OldModelLoader{1.4.4} LMMNX OldModelLoader
UCHIJAAAAAAAAA NotEnoughItems{1.0.5.120} Not Enough Items
UCHIJAAAAAAAAA backpacks16840{3.1.0} [Backpacks!](zz-backpacks 1.7.10 - 3.1.0.jar)
UCHIJAAAAAAAAA {000} CoFH ASM
UCHIJAAAAAAAAA mod_ThreadedLighting{1.7.10-1.0} Threaded Lighting
UCHIJAAAAAAAAA FastCraft{1.23} FastCraft
UCHIJAAAAAAAAA gilded-games-util{1.7.10-1.2} Gilded Games Utility
UCHIJAAAAAAAAA battlegear2{1.7.10} Mine & Blade Battlegear 2 - Bullseye
UCHIJAAAAAAAAA bspkrsCore{6.16} bspkrsCore
UCHIJAAAAAAAAA Treecapitator{1.7.10} Treecapitator
UCHIJAAAAAAAAA abyssalcraft{1.9.1.2} AbyssalCraft
UCHIJAAAAAAAAA Baubles{1.0.1.10} Baubles
UCHIJAAAAAAAAA Thaumcraft{4.2.3.5} Thaumcraft
UCHIJAAAAAAAAA acintegration{1.4.5} [AbyssalCraft Integration](AbyssalCraft Integration-1.7.10-1.4.5.jar)
UCHIJAAAAAAAAA AnimationAPI{1.2.4} AnimationAPI
UCHIJAAAAAAAAA CoFHCore{1.7.10R3.1.2} CoFH Core
UCHIJAAAAAAAAA ThermalFoundation{1.7.10R1.2.4} Thermal Foundation
UCHIJAAAAAAAAA ImmersiveEngineering{0.7.7} Immersive Engineering
UCHIJAAAAAAAAA arcane_engineering{0.2.7} Arcane Engineering
UCHIJAAAAAAAAA Aroma1997CoreHelper{1.0.2.16} Aroma1997Core|Helper
UCHIJAAAAAAAAA AromaBackup{0.1.0.0} AromaBackup
UCHIJAAAAAAAAA AromaBackupRecovery{1.0} AromaBackup Recovery
UCHIJAAAAAAAAA BiblioCraft{1.11.5} BiblioCraft
UCHIJAAAAAAAAA ExtrabiomesXL{3.16.4} ExtrabiomesXL
UCHIJAAAAAAAAA BiblioWoodsEBXL{1.4} BiblioWoods ExtraBiomesXL Edition
UCHIJAAAAAAAAA AWWayofTime{v1.3.3} Blood Magic: Alchemical Wizardry
UCHIJAAAAAAAAA Botania{r1.8-248} [Botania](Botania r1.8-248.jar)
UCHIJAAAAAAAAA cfm{3.4.8} §9MrCrayfish's Furniture Mod
UCHIJAAAAAAAAA TwilightForest{2.3.7} The Twilight Forest
UCHIJAAAAAAAAA chisel{2.9.5.11} Chisel
UCHIJAAAAAAAAA chocolateQuest{1.0} Chocolate Quest
UCHIJAAAAAAAAA craftarcanum{1.0.1} Craft Arcanum
UCHIJAAAAAAAAA craftguide{1.6.8.1} CraftGuide
UCHIJAAAAAAAAA craftingpillars{1.6.0} Crafting Pillars Mod
UCHIJAAAAAAAAA CustomSpawner{3.3.0} [DrZhark's CustomSpawner](CustomMobSpawner 3.3.0.zip)
UCHIJAAAAAAAAA customnpcs{1.7.10d} CustomNpcs
UCHIJAAAAAAAAA MoCreatures{6.3.1} [DrZhark's Mo'Creatures Mod](DrZharks MoCreatures Mod v6.3.1.zip)
UCHIJAAAAAAAAA DummyCore{1.13} DummyCore
UCHIJAAAAAAAAA IC2{2.2.821-experimental} IndustrialCraft 2
UCHIJAAAAAAAAA EMT{2.0.0Alpha4} Electro-Magic Tools
UCHIJAAAAAAAAA ESM{10.0.148} Epic Siege Mod
UCHIJAAAAAAAAA flansmod{4.10.0} [Flan's Mod](Flans Mod-1.7.10-4.10.0.jar)
UCHIJAAAAAAAAA ForbiddenMagic{1.7.10-0.575} [Forbidden Magic](Forbidden Magic-1.7.10-0.575.jar)
UCHIJAAAAAAAAA gadomancy{1.0.7.2} Gadomancy
UCHIJAAAAAAAAA GrimoireOfGaia{1.0.0} Grimoire of Gaia 3
UCHIJAAAAAAAAA lmmx{10} LittleMaidMobEnhanced
UCHIJAAAAAAAAA RadixCore{2.1.2} RadixCore
UCHIJAAAAAAAAA MCA{1.7.10-5.2.1} Minecraft Comes Alive
UCHIJAAAAAAAAA MoreFurnaces{1.3.9} More Furnaces
UCHIJAAAAAAAAA Mystcraft{0.12.3.02} Mystcraft
UCHIJAAAAAAAAA harvestcraft{1.7.10j} [Pam's HarvestCraft](Pam's HarvestCraft 1.7.10Lb.jar)
UCHIJAAAAAAAAA Roguelike{1.5.0} Roguelike Dungeons
UCHIJAAAAAAAAA benway_knowledge{0.1.5.1} [Thaumaturgical Knowledge](Thaumaturgical Knowledge-0.1.5.2 - 1.7.10.jar)
UCHIJAAAAAAAAA ThaumcraftMobAspects{1.7.2-2A} Thaumcraft Mob Aspects
UCHIJAAAAAAAAA TU{1.0} Thaumic Upholstry
UCHIJAAAAAAAAA thebetweenlands{1.0.6-alpha} The Betweenlands
UCHIJAAAAAAAAA ThermalExpansion{1.7.10R4.1.2} Thermal Expansion
UCHIJAAAAAAAAA worldedit{6.0-beta-01} WorldEdit
UCHIJAAAAAAAAA XaeroMinimap{1.4.5.1} Xaero's Minimap
GL info: ERROR RuntimeException: No OpenGL context found in the current thread.
CoFHCore: -[1.7.10]3.1.2-325
ThermalFoundation: -[1.7.10]1.2.4-114
ThermalExpansion: -[1.7.10]4.1.2-240
Chisel: Errors like "[FML]: Unable to lookup ..." are NOT the cause of this crash. You can safely ignore these errors. And update forge while you're at it.
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['Mariku_Junrei'/111353, l='New World', x=-169.23, y=93.00, z=297.63]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
OptiFine Version: OptiFine_1.7.10_HD_U_D6
Render Distance Chunks: 8
Mipmaps: 3
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
OpenGlVersion: 3.1.0 - Build 9.17.10.4229
OpenGlRenderer: Intel(R) HD Graphics 3000
OpenGlVendor: Intel
CpuCount: 4

@Goujer Goujer added the bug label Aug 9, 2016
Goujer pushed a commit to Goujer/Battlegear2 that referenced this issue Aug 9, 2016
This should allow entities that have inventories extending InventoryPlayer to pick up arrows without causing a casting error with InventoryPlayerBattle that leads to a crash.
Ex: LittleMaidMob Goujer/LittleMaidMobEnhanced#4
@Goujer
Copy link
Owner Author

Goujer commented Aug 12, 2016

This appears to be caused by Mine and Blade trying to find out what a maid has in its second hand slot (a Mine and Blade feature). Mine and Blade casts the maids inventory to its InventoryPlayerBattle to use this second hand slot method but crashes since maids extend the InventoryPlayer and are not an instance of InventoryPlayerBattle. A check on the Mine and Blade side to see if the entity inventory is a InventoryPlayer and not InventoryPlayerBattle would be the simplest way to solve this bug.

@Goujer
Copy link
Owner Author

Goujer commented Aug 24, 2016

A check has been placed into the Battlegear2's AbsractMBArrow that solves the issue.
It is up to BattleGear2's Developer to implement into a release.

@Goujer Goujer closed this as completed Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant