Fabricators-of-Create / Create

[Fabric Mod] Building Tools and Aesthetic Technology
MIT License
875 stars 196 forks source link

Game crash whilst ticking block entity #1224

Closed Trippy-Epiphany closed 9 months ago

Trippy-Epiphany commented 9 months ago

Describe the Bug

When a deployer kills a mob, the game crashes.

Reproduction Steps

  1. Deployer in fist function
  2. Kill any mob
  3. Game crashes with error "The game crashed whilst ticking block entity Error: java.lang.NullPointerException: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because "capturedDrops" is null"

Expected Result

Game remains open and mob drops items.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.1d

Minecraft Version

1.20.1

Other Mods

Create Enchant Industry JEI Xaeros mini map and map Fabric API

Additional Context

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

Time: 2023-12-16 17:31:20 Description: Ticking block entity

java.lang.NullPointerException: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because "capturedDrops" is null at com.simibubi.create.content.kinetics.deployer.DeployerHandler.activateInner(DeployerHandler.java:207) at com.simibubi.create.content.kinetics.deployer.DeployerHandler.activate(DeployerHandler.java:134) at com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity.activate(DeployerBlockEntity.java:358) at com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity.tick(DeployerBlockEntity.java:244) at com.simibubi.create.foundation.blockEntity.SmartBlockEntityTicker.tick(SmartBlockEntityTicker.java:15) at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) at net.minecraft.class_1937.method_18471(class_1937.java:470) at net.minecraft.class_3218.method_18765(class_3218.java:390) at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) at net.minecraft.class_1132.method_3748(class_1132.java:105) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) 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 com.simibubi.create.content.kinetics.deployer.DeployerHandler.activateInner(DeployerHandler.java:207) at com.simibubi.create.content.kinetics.deployer.DeployerHandler.activate(DeployerHandler.java:134) at com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity.activate(DeployerBlockEntity.java:358) at com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity.tick(DeployerBlockEntity.java:244) at com.simibubi.create.foundation.blockEntity.SmartBlockEntityTicker.tick(SmartBlockEntityTicker.java:15) at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) at net.minecraft.class_1937.method_18471(class_1937.java:470) at net.minecraft.class_3218.method_18765(class_3218.java:390)

-- Block entity being ticked -- Details: Name: create:deployer // com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity Block: Block{create:deployer}[axis_along_first=false,facing=east] Block location: World: (650,-10,-166), Section: (at 10,6,10 in 40,-1,-11; chunk contains blocks 640,-64,-176 to 655,319,-161), Region: (1,-1; contains chunks 32,-32 to 63,-1, blocks 512,-64,-512 to 1023,319,-1) Block: Block{create:deployer}[axis_along_first=false,facing=east] Block location: World: (650,-10,-166), Section: (at 10,6,10 in 40,-1,-11; chunk contains blocks 640,-64,-176 to 655,319,-161), Region: (1,-1; contains chunks 32,-32 to 63,-1, blocks 512,-64,-512 to 1023,319,-1) Stacktrace: at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) at net.minecraft.class_1937.method_18471(class_1937.java:470) at net.minecraft.class_3218.method_18765(class_3218.java:390) at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) at net.minecraft.class_1132.method_3748(class_1132.java:105) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) at java.base/java.lang.Thread.run(Thread.java:833)

-- Affected level -- Details: All players: 1 total; [class_3222['TheClarinetCat'/142, l='ServerLevel[Stoat 4]', x=654.70, y=-10.00, z=-166.14]] Chunk stats: 4598 Level dimension: minecraft:overworld Level spawn location: World: (32,66,64), Section: (at 0,2,0 in 2,4,4; chunk contains blocks 32,-64,64 to 47,319,79), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 3506326 game time, 5222220 day time Level name: Stoat 4 Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Level weather: Rain time: 11687 (now: true), thunder time: 29458 (now: false) Known server brands: vanilla, fabric Removed feature flags: Level was modded: true Level storage version: 0x04ABD - Anvil Stacktrace: at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) at net.minecraft.class_1132.method_3748(class_1132.java:105) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) at java.base/java.lang.Thread.run(Thread.java:833)

-- System Details -- Details: Minecraft Version: 1.20.1 Minecraft Version ID: 1.20.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 17.0.8, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 1011662992 bytes (964 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 12 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz Identifier: Intel64 Family 6 Model 165 Stepping 2 Microarchitecture: unknown Frequency (GHz): 2.59 Number of physical packages: 1 Number of physical CPUs: 6 Number of logical CPUs: 12 Graphics card #0 name: Virtual Desktop Monitor Graphics card #0 vendor: Virtual Desktop, Inc. Graphics card #0 VRAM (MB): 0.00 Graphics card #0 deviceId: unknown Graphics card #0 versionInfo: DriverVersion=15.39.56.845 Graphics card #1 name: NVIDIA GeForce GTX 1660 Ti Graphics card #1 vendor: NVIDIA (0x10de) Graphics card #1 VRAM (MB): 4095.00 Graphics card #1 deviceId: 0x2191 Graphics card #1 versionInfo: DriverVersion=31.0.15.1700 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 2.93 Memory slot #0 type: DDR4 Memory slot #1 capacity (MB): 8192.00 Memory slot #1 clockSpeed (GHz): 2.93 Memory slot #1 type: DDR4 Virtual memory max (MB): 27043.80 Virtual memory used (MB): 20572.72 Swap memory total (MB): 10752.00 Swap memory used (MB): 297.77 JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M Fabric Mods: create: Create 0.5.1-d-build.1161+mc1.20.1 com_electronwill_night-config_core: core 3.6.3 com_electronwill_night-config_toml: toml 3.6.3 com_google_code_findbugs_jsr305: jsr305 3.0.2 flywheel: Flywheel 0.6.9-1 forgeconfigapiport: Forge Config API Port 8.0.0 milk: Milk Lib 1.2.60 dripstone_fluid_lib: Dripstone Fluid Lib 3.0.2 porting_lib_accessors: Porting Lib Accessors 2.1.1127+1.20 porting_lib_base: Porting Lib Base 2.1.1127+1.20 porting_lib_lazy_registration: Porting Lib Lazy Register 2.1.1127+1.20 porting_lib_utility: Porting Lib Utility 2.1.1127+1.20 porting_lib_brewing: Porting Lib Brewing 2.1.1127+1.20 porting_lib_client_events: Porting Lib Client Events 2.1.1127+1.20 mm: Manningham Mills 2.3 porting_lib_entity: Porting Lib Entity 2.1.1127+1.20 porting_lib_mixin_extensions: Porting Lib Mixin Extensions 2.1.1127+1.20 porting_lib_extensions: Porting Lib Extensions 2.1.1127+1.20 com_github_llamalad7_mixinextras: MixinExtras 0.2.0-beta.8 porting_lib_attributes: Porting Lib Attributes 2.1.1127+1.20 porting_lib_common: Porting Lib Common 2.1.1127+1.20 porting_lib_core: Porting Lib Core 2.1.1127+1.20 porting_lib_gametest: Porting Lib GameTest 2.1.1127+1.20 porting_lib_fake_players: Porting Lib Fake Players 2.1.1127+1.20 porting_lib_models: Porting Lib Models 2.1.1127+1.20 porting_lib_model_loader: Porting Lib Model Loader 2.1.1127+1.20 porting_lib_networking: Porting Lib Networking 2.1.1127+1.20 porting_lib_obj_loader: Porting Lib Obj Loader 2.1.1127+1.20 porting_lib_tags: Porting Lib Tags 3.0 porting_lib_tool_actions: Porting Lib Tool Actions 2.1.1127+1.20 porting_lib_transfer: Porting Lib Transfer 2.1.1127+1.20 reach-entity-attributes: Reach Entity Attributes 2.4.0 registrate-fabric: Registrate for Fabric 1.3.62-MC1.20.1 porting_lib_data: Porting Lib Data 2.1.1090+1.20 porting_lib_model_generators: Porting Lib Model Generators 2.1.1090+1.20 porting_lib_model_materials: Porting Lib Model Materials 2.1.1090+1.20 create_enchantment_industry: Create Enchantment Industry 1.2.9 create_dragon_lib: Create Dragon Lib 1.4.1 fabric-api: Fabric API 0.90.7+1.20.1 fabric-api-base: Fabric API Base 0.4.30+7abfd51577 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.35+4d8536c977 fabric-biome-api-v1: Fabric Biome API (v1) 13.0.12+215bbe9677 fabric-block-api-v1: Fabric Block API (v1) 1.0.10+92a0d36777 fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.0+92a0d36777 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.40+b3afc78b77 fabric-client-tags-api-v1: Fabric Client Tags 1.1.1+97bb207577 fabric-command-api-v1: Fabric Command API (v1) 1.2.33+f71b366f77 fabric-command-api-v2: Fabric Command API (v2) 2.2.12+b3afc78b77 fabric-commands-v0: Fabric Commands (v0) 0.2.50+df3654b377 fabric-containers-v0: Fabric Containers (v0) 0.1.63+df3654b377 fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.10+57aed33f77 fabric-convention-tags-v1: Fabric Convention Tags 1.5.4+a1a980da77 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.18+aeb40ebe77 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.3.2+d7b148e077 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.53+8536527b77 fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.22+b3afc78b77 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.1+e91849a877 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.62+df3654b377 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.39+ae9f657a77 fabric-item-api-v1: Fabric Item API (v1) 2.1.27+b3afc78b77 fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.11+d7b148e077 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.36+fb8d95da77 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.34+df3654b377 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.21+b3afc78b77 fabric-loot-api-v2: Fabric Loot API (v2) 1.2.0+96dfa95977 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.44+9e7660c677 fabric-message-api-v1: Fabric Message API (v1) 5.1.8+d7b148e077 fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.49+b3afc78b77 fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.2+709a987177 fabric-models-v0: Fabric Models (v0) 0.4.1+9386d8a777 fabric-networking-api-v1: Fabric Networking API (v1) 1.3.10+eeb8eb3677 fabric-networking-v0: Fabric Networking (v0) 0.3.50+df3654b377 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.1.2+4ee0bc6077 fabric-particles-v1: Fabric Particles (v1) 1.1.1+201a23a077 fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.20+b3afc78b77 fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.2+4df89eb277 fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.0+39a511ba77 fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.0+39a511ba77 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.45+df3654b377 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.36+92a0d36777 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.27+b3afc78b77 fabric-rendering-v0: Fabric Rendering (v0) 1.1.48+df3654b377 fabric-rendering-v1: Fabric Rendering (v1) 3.0.7+b3afc78b77 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.6+d7b148e077 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.9+132c48c177 fabric-screen-api-v1: Fabric Screen API (v1) 2.0.7+b3afc78b77 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.29+b3afc78b77 fabric-sound-api-v1: Fabric Sound API (v1) 1.0.12+b3afc78b77 fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.2+1bc31aeb77 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.3.0+6c31357e77 fabricloader: Fabric Loader 0.14.24 java: OpenJDK 64-Bit Server VM 17 jei: Just Enough Items 15.2.0.27 minecraft: Minecraft 1.20.1 xaerominimap: Xaero's Minimap 23.8.4 xaeroworldmap: Xaero's World Map 1.36.0 Flywheel Backend: GL33 Instanced Arrays Server Running: true Player Count: 1 / 8; [class_3222['TheClarinetCat'/142, l='ServerLevel[Stoat 4]', x=654.70, y=-10.00, z=-166.14]] Data Packs: vanilla, fabric Enabled Feature Flags: minecraft:vanilla World Generation: Stable Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric' Launched Version: fabric-loader-0.14.24-1.20.1

TropheusJ commented 9 months ago

duplicate of #1096