Improved Mobs (Forge)

Improved Mobs (Forge)

8M Downloads

Error when adding enchantment to armor on a mob

entwinedent opened this issue · 1 comments

commented

Modloader

Fabric

Minecraft version

1.18.2

Modloader version

fabric-api-0.51.1+1.18.2.jar

Mod version

improvedmobs-1.18.2-1.10.7-fabric.jar

TenshiLib version

tenshilib-1.18.2-1.6.7-fabric.jar

Description

Booted up server everything was going fine until my difficulty multiplier got to 6 - 7 then i think the modpack tried to grab something from another modpack and couldn't map to a creature or something,

Steps to reproduce

Have my mods and start minecraft , then play a while and the mapping went wrong somewhere.

Mods that might affect the issue

I think this mod also tried to grab a jetpack png from iron jetpacks mod and add it to a creature , but the PNG failed to map to the creature. The game reloaded fine after i reset the server ,Then the next crash happened with the enchant mapping im guessing. Also might have problems with elemental creeper mod with loading a firework creeper.

Logs

---- Minecraft Crash Report ----
// Why did you do that?

Time: 4/30/22, 7:47 AM
Description: Exception ticking world

java.lang.NullPointerException: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because "currentEnchantments" is null
at net.minecraft.class_1890.handler$bkp000$getPossibleEntriesMixin(class_1890.java:1545)
at net.minecraft.class_1890.method_8229(class_1890.java)
at net.minecraft.class_1890.method_8230(class_1890.java:360)
at net.minecraft.class_1890.method_8233(class_1890.java:318)
at io.github.flemmli97.improvedmobs.utils.Utils.enchantGear(Utils.java:106)
at io.github.flemmli97.improvedmobs.events.EventCalls.applyAttributesAndItems(EventCalls.java:216)
at io.github.flemmli97.improvedmobs.events.EventCalls.onEntityLoad(EventCalls.java:149)
at io.github.flemmli97.improvedmobs.fabric.events.EventHandler.onEntityLoad(EventHandler.java:58)
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerEntityEvents.lambda$static$0(ServerEntityEvents.java:42)
at net.minecraft.class_3218$class_5526.handler$bco000$invokeEntityLoadEvent(class_3218.java:1635)
at net.minecraft.class_3218$class_5526.method_31436(class_3218.java:1519)
at net.minecraft.class_3218$class_5526.method_31798(class_3218.java:1480)
at net.minecraft.class_5579.method_31847(class_5579.java:210)
at net.minecraft.class_5579.method_31820(class_5579.java:180)
at net.minecraft.class_5579.method_31818(class_5579.java:161)
at net.minecraft.class_3218.method_14175(class_3218.java:855)
at net.minecraft.class_3218.method_8649(class_3218.java:806)
at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at net.minecraft.class_5425.method_30771(class_5425.java:11)
at net.minecraft.class_1948.method_24930(class_1948.java:298)
at net.minecraft.class_1948.method_8663(class_1948.java:211)
at net.minecraft.class_1948.method_27821(class_1948.java:199)
at net.minecraft.class_3215.method_14161(class_3215.java:375)
at net.minecraft.class_3215.method_12127(class_3215.java:322)
at net.minecraft.class_3218.method_18765(class_3218.java:311)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907)
at net.minecraft.class_3176.method_3813(class_3176.java:322)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273)
at java.base/java.lang.Thread.run(Thread.java:833)

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

-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.class_1890.handler$bkp000$getPossibleEntriesMixin(class_1890.java:1545)
at net.minecraft.class_1890.method_8229(class_1890.java)
at net.minecraft.class_1890.method_8230(class_1890.java:360)
at net.minecraft.class_1890.method_8233(class_1890.java:318)
at io.github.flemmli97.improvedmobs.utils.Utils.enchantGear(Utils.java:106)
at io.github.flemmli97.improvedmobs.events.EventCalls.applyAttributesAndItems(EventCalls.java:216)
at io.github.flemmli97.improvedmobs.events.EventCalls.onEntityLoad(EventCalls.java:149)
at io.github.flemmli97.improvedmobs.fabric.events.EventHandler.onEntityLoad(EventHandler.java:58)
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerEntityEvents.lambda$static$0(ServerEntityEvents.java:42)
at net.minecraft.class_3218$class_5526.handler$bco000$invokeEntityLoadEvent(class_3218.java:1635)
at net.minecraft.class_3218$class_5526.method_31436(class_3218.java:1519)
at net.minecraft.class_3218$class_5526.method_31798(class_3218.java:1480)
at net.minecraft.class_5579.method_31847(class_5579.java:210)
at net.minecraft.class_5579.method_31820(class_5579.java:180)
at net.minecraft.class_5579.method_31818(class_5579.java:161)
at net.minecraft.class_3218.method_14175(class_3218.java:855)
at net.minecraft.class_3218.method_8649(class_3218.java:806)
at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at net.minecraft.class_5425.method_30771(class_5425.java:11)
at net.minecraft.class_1948.method_24930(class_1948.java:298)
at net.minecraft.class_1948.method_8663(class_1948.java:211)
at net.minecraft.class_1948.method_27821(class_1948.java:199)
at net.minecraft.class_3215.method_14161(class_3215.java:375)
at net.minecraft.class_3215.method_12127(class_3215.java:322)
at net.minecraft.class_3218.method_18765(class_3218.java:311)

-- Affected level --
Details:
All players: 1 total; [class_3222['jjm19d'/2718, l='ServerLevel[world]', x=-195.04, y=95.88, z=-29.49]]
Chunk stats: 2777
Level dimension: minecraft:overworld
Level spawn location: World: (-64,117,-48), Section: (at 0,5,0 in -4,7,-3; chunk contains blocks -64,-64,-48 to -49,319,-33), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1,319,-1)
Level time: 5122419 game time, 5411899 day time
Level name: world
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Level weather: Rain time: 80521 (now: false), thunder time: 27550 (now: false)
Known server brands: fabric
Level was modded: true
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907)
at net.minecraft.class_3176.method_3813(class_3176.java:322)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273)
at java.base/java.lang.Thread.run(Thread.java:833)

-- System Details --
Details:
Minecraft Version: 1.18.2
Minecraft Version ID: 1.18.2
Operating System: Linux (amd64) version 5.4.0-109-generic
Java Version: 17.0.1, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 2800896504 bytes (2671 MiB) / 5419040768 bytes (5168 MiB) up to 30064771072 bytes (28672 MiB)
CPUs: 12
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 7 3700X 8-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): -0.00
Number of physical packages: 1
Number of physical CPUs: 6
Number of logical CPUs: 12
Graphics card #0 name: Cayman PRO [Radeon HD 6950]
Graphics card #0 vendor: Advanced Micro Devices, Inc. [AMD/ATI] (0x1002)
Graphics card #0 VRAM (MB): 256.00
Graphics card #0 deviceId: 0x6719
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 60963.37
Virtual memory used (MB): 7700.94
Swap memory total (MB): 36863.99
Swap memory used (MB): 0.00
JVM Flags: 1 total; -Xmx28G
Fabric Mods:
additionaladditions: Additional Additions 3.0.1
additionalstructures: Additional Structures 3.0.3
advanced_runtime_resource_pack: Runtime Resource Pack 0.5.7
agape_space: Space Dimensions 0.5.8
alloy_forgery: Alloy Forgery 2.0.13+1.18
architectury: Architectury 4.2.48
autoconfig1u: Auto Config v1 Updated 3.4.0
awesomedungeon: Awesome Dungeon 2.0.8
awesomedungeonend: Awesome Dungeon Edition end 1.0.1
awesomedungeonnether: Awesome Dungeon Edition Nether 1.0.1
awesomedungeonocean: Awesome Dungeon Edition Ocean 2.0.6
backslot: BackSlot 1.2.6
backslotaddon: BackSlot Addon 1.0.8
balm-fabric: Balm 3.0.0+0
basicaiots: Basic AIOTs 1.3.3+1.18.2
basicshields: Basic Shields [Fabric] 1.3.1-1.18.2
bclib: BCLib 1.4.5
bedspreads: Bedspreads 1.5.0-1.18
beehivetooltips: Beehive Tooltips 1.4.2
betterend: Better End 1.1.0
betternether: Better Nether 6.1.1
blockus: Blockus 2.4.4+1.18.2
blue_endless_jankson: jankson 1.2.1
bookshelf: Bookshelf 13.0.12
buildinggadgets: st'ructure tools 1.0.21
byg: Oh The Biomes You'll Go 1.4-RC-8
camsbackpacks: Cammie's Wearable Backpacks 2.11
cardinal-components-base: Cardinal Components API (base) 4.1.4
cardinal-components-entity: Cardinal Components API (entities) 4.1.4
cardinal-components-item: Cardinal Components API (items) 4.0.0
cardinal-components-level: Cardinal Components API (world saves) 4.0.0
cardinal-components-world: Cardinal Components API (worlds) 4.0.0
carrier: Carrier 1.10.0
chipped: Chipped 1.2
cloth-api: Cloth API 3.2.64
cloth-basic-math: cloth-basic-math 0.6.0
cloth-client-events-v0: Cloth Client Events v0 3.2.64
cloth-common-events-v1: Cloth Common Events v1 3.2.64
cloth-config: Cloth Config v6 6.2.57
cloth-datagen-api-v1: Cloth Datagen v1 3.2.64
cloth-utils-v1: Cloth Utils v1 3.2.64
clumps: Clumps 8.0.0+7
collective-fabric: Collective (Fabric) 4.26
com_electronwill_night-config_core: core 3.6.5
com_electronwill_night-config_toml: toml 3.6.5
com_eliotlash_mclib_mclib: mclib 18
com_eliotlash_molang_molang: molang 18
couplings: Couplings 1.8.0+1.18.2
craftingtweaks: Crafting Tweaks 13.0.0
crafttweaker: CraftTweaker 9.1.116
crawl: Crawl 0.10.4
creeperoverhaul: Creeper Overhaul 1.3.0
creeperspores: Creeper Spores 1.8.0
crowdin-translate: CrowdinTranslate 1.4+1.18.2
dragonloot: DragonLoot 1.0.10
dualwielding: Dual Wielding 1.0.8
eldritch_mobs: Eldritch Mobs 1.11.0
elementalcreepers: Elemental Creepers: Refabricated 1.4.2+1.18.2
enchantinginfuser: Enchanting Infuser 3.2.0
extragenerators: Extra Generators 1.2.1-BETA+1.18
fabric: Fabric API 0.51.1+1.18.2
fabric-api-base: Fabric API Base 0.4.4+d7c144a860
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.0+2373a54560
fabric-biome-api-v1: Fabric Biome API (v1) 8.0.4+7b0f312660
fabric-command-api-v1: Fabric Command API (v1) 1.1.9+d7c144a860
fabric-commands-v0: Fabric Commands (v0) 0.2.8+b4f4f6cd60
fabric-containers-v0: Fabric Containers (v0) 0.1.21+d7c144a860
fabric-content-registries-v0: Fabric Content Registries (v0) 3.0.3+d82b939260
fabric-convention-tags-v1: Fabric Convention Tags 1.0.1+474e4f7960
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.11+3ac43d9560
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.17+2540745460
fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.8+d7c144a860
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.19+d7c144a860
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.14+d7c144a860
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.13+d7c144a860
fabric-item-api-v1: Fabric Item API (v1) 1.4.0+4457765560
fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.11+91896a4960
fabric-language-kotlin: Fabric Language Kotlin 1.7.3+kotlin.1.6.20
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.0.3+2d83e92c60
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.11+d7c144a860
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.0+81ea5b3c60
fabric-networking-api-v1: Fabric Networking API (v1) 1.0.21+d882b91560
fabric-networking-v0: Fabric Networking (v0) 0.3.8+b4f4f6cd60
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 2.1.0+fe4ddef060
fabric-particles-v1: Fabric Particles (v1) 0.2.12+526dc1ac60
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.8+0d9ab37260
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.7+d7c144a860
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 2.0.2+54e5b2ec60
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.0.3+91b7aa6660
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.18+2de5574560
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.2.0+1f6558e860
fabric-transfer-api-v1: Fabric Transfer API (v1) 1.6.0+2373a54560
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.0.0+bd8a4a1860
fabricloader: Fabric Loader 0.13.3
fabricshieldlib: Fabric Shield Lib 1.5.3-1.18
fake-player-api: Fake Player API 0.3.0
fallingtree: FallingTree 3.5.0b1
farsighted-mobs: Farsighted Mobs 1.1-1.18
feature_nbt_deadlock_be_gone: Feature NBT Deadlock Be Gone - Fabric 2.0.0+1.18.2-rc1
fiber: fiber 0.23.0-2
forgeconfigapiport: Forge Config API Port 3.2.0
furnacerecycle-fabric: Furnace Recycle (Fabric) 1.2
gateofbabylon: Gate Of Babylon 1.7.0-1.18.2
geckolib3: Geckolib 3.0.38
giantspawn-fabric: Giant Spawn (Fabric) 2.7
gobber2: Gobber2 2.5.71
huskspawn-fabric: Husk Spawn (Fabric) 1.4
iceberg: Iceberg 1.0.38
illagerexp: Illager Expansion 0.1.5
improvedmobs: Improved Mobs 1.18.2-1.10.7
indrev: Industrial Revolution 1.14.0-BETA
ingredient-extension-api: Ingredient Extension API 2.0.5
inmis: Inmis 2.5.3-1.18.2
iron-jetpacks: Iron Jetpacks 0.4.3
jankson: Jankson 4.0.0+j1.2.0
java: Java HotSpot(TM) 64-Bit Server VM 17
libblockattributes_core: LibBlockAttributes (Core) 0.10.0
libblockattributes_fluids: LibBlockAttributes (Fluids) 0.10.0
libblockattributes_items: LibBlockAttributes (Items) 0.10.0
libgui: LibGui 5.3.2+1.18.2
libninepatch: LibNinePatch 1.1.0
libraryferret: Library Ferret 1.0.3
magna: Magna 1.7.0-1.18-pre1
mambience: MAmbience 5.0.0+1.18.2
maybe-data: Maybe data 1.1.0-1.18.2
medievalweapons: Medieval Weapons 1.1.9
minecraft: Minecraft 1.18.2
mm: Manningham Mills 2.3
modern_industrialization: Modern Industrialization 1.1.0-alpha.01
more_babies: More Babies 0.5.2
moreachievements: MoreAchievements 1.0.8
mores: Mores 1.3.0
mythicmetals: Mythic Metals 0.13.1
naturallychargedcreepers-fabric: Naturally Charged Creepers (Fabric) 1.7
omega-config: OmegaConfig 1.2.3-1.18.1
org_javassist_javassist: javassist 3.28.0-GA
org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.6.20
org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.6.20
org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.6.20
org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.6.20
org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.6.1
org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.6.1
org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.3.2
org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.2
org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.2
org_reflections_reflections: reflections 0.10.2
owo: oωo 0.7.0+1.18
patchouli: Patchouli 1.18.2-66-FABRIC-SNAPSHOT
playerabilitylib: Pal 1.5.0
pugh_lib: Pugh Lib 1.3.0
pugh_tools: Pugh Tools 1.2.5
puzzleslib: Puzzles Lib 3.3.1
quarryplus: QuarryPlus 18.4.0
randommobeffects-fabric: Random Mob Effects (Fabric) 1.6
reach-entity-attributes: Reach Entity Attributes 2.1.1
reborncore: Reborn Core 5.2.0-beta.3
reinfchest: Reinforced Chests 2.0.0+1.18
reinfcore: Reinforced Core 2.0.0+1.18
repurposed_structures: Repurposed Structures 4.1.6+1.18.2
roughlyenoughitems: Roughly Enough Items 8.1.449
roughlyenoughprofessions: Roughly Enough Professions 1.0.1
roughlyenoughresources: Roughly Enough Resources 2.5.0
seedfix: Seed Fix 1.0.1
skeletonhorsespawn-fabric: Skeleton Horse Spawn (Fabric) 1.9
static-content: Static Content 1.0.2-1.16.2
staticdata: Static Data 1.1.2
step-height-entity-attribute: Step Height Entity Attribute 1.0.0
stoneholm: Stoneholm 1.4.3
strayspawn-fabric: Stray Spawn (Fabric) 1.5
team_reborn_energy: Energy 2.2.0
techreborn: Tech Reborn 5.2.0-beta.3
tenshilib: TenshiLib 1.18.2-1.6.7
terrablender: TerraBlender 1.1.0.99
terraform-wood-api-v1: Terraform Wood API (v1) 3.0.0
terrarianslimes: Terrarian Slimes 1.2-BETA+1.18
the_extractinator: The Extractinator 1.0.7
totw_additions: Towers of the Wild: Additions 1.2.1
trinketofundying: Trinket of Undying 2.0.1-1.18
trinkets: Trinkets 3.3.0
vanilla-hammers: Vanilla Hammers 3.3.0-1.18.2
vanillaexcavators: Vanilla Excavators 1.1.0
veinmining: Vein Mining 0.0.12-1.18.2
voidtotem: VoidTotem (Fabric) 1.18.2-1.3.1
waystones: Waystones 2.5.0
whisperwoods: Whisperwoods 1.18.2-2.1.0
wthit: wthit 4.8.1
xaerominimap: Xaero's Minimap 22.5.0
xaeroworldmap: Xaero's World Map 1.20.6
xps: Xp Obelisk 0.3.6.b_for_1.18.x_Fabric
yigd: You're in Grave Danger 1.3.1
yungsapi: YUNG's API 1.18.2-Fabric-2.0.7
zombiehorsespawn-fabric: Zombie Horse Spawn (Fabric) 3.0
Server Running: true
Player Count: 1 / 20; [class_3222['jjm19d'/2718, l='ServerLevel[world]', x=-195.04, y=95.88, z=-29.49]]
Data Packs: vanilla, Fabric Mods, file/Towers_Of_The_Wild_Reworked_v3.0.0_Fabric_Waystones.zip, file/ElderscrollsMusicReplacerDELUXE+(1.18).zip (incompatible), file/FaithfulHDx512_1.18.zip (incompatible), file/Ore_Variants_v2.3.zip (incompatible), file/Rainbow+XP+bar+and+ping+1.18.zip (incompatible)
World Generation: Stable
Is Modded: Definitely; Server brand changed to 'fabric'
Type: Dedicated Server (map_server.txt)

commented

use a paste site for logs