Create

Create

86M Downloads

[1.20.1] Exception in "Deployer" when processing data

mapletav opened this issue ยท 4 comments

commented

Describe the Bug

Seems Data of type BucketItem cannot be correctly converted to data of type ServerLevel.

The following is an overview of the error reported in the crash log

Description: Ticking block entity


java.lang.ClassCastException: class com.simibubi.create.content.kinetics.deployer.DeployerHandler$ItemUseWorld cannot be cast to class net.minecraft.server.level.ServerLevel (com.simibubi.create.content.kinetics.deployer.DeployerHandler$ItemUseWorld is in module [email protected] of loader 'TRANSFORMER' @6839203b; net.minecraft.server.level.ServerLevel is in module [email protected] of loader 'TRANSFORMER' @6839203b)
	at net.minecraft.world.item.BucketItem.emptyContents(BucketItem.java:170) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,xf:fml:forge:bucketitem,re:classloading,xf:fml:forge:bucketitem,pl:mixin:APP:architectury-common.mixins.json:inject.MixinBucketItem,pl:mixin:A}
	at net.minecraft.world.item.BucketItem.m_7203_(BucketItem.java:112) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,xf:fml:forge:bucketitem,re:classloading,xf:fml:forge:bucketitem,pl:mixin:APP:architectury-common.mixins.json:inject.MixinBucketItem,pl:mixin:A}
	at com.simibubi.create.content.kinetics.deployer.DeployerHandler.activateInner(DeployerHandler.java:336) ~[create-1.20.1-0.5.1.d.jar%23197!/:0.5.1.d] {re:classloading}
	at com.simibubi.create.content.kinetics.deployer.DeployerHandler.activate(DeployerHandler.java:134) ~[create-1.20.1-0.5.1.d.jar%23197!/:0.5.1.d] {re:classloading}
	at com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity.activate(DeployerBlockEntity.java:335) ~[create-1.20.1-0.5.1.d.jar%23197!/:0.5.1.d] {re:classloading,pl:runtimedistcleaner:A}
	at com.simibubi.create.content.kinetics.deployer.DeployerBlockEntity.tick(DeployerBlockEntity.java:221) ~[create-1.20.1-0.5.1.d.jar%23197!/:0.5.1.d] {re:classloading,pl:runtimedistcleaner:A}
	at com.simibubi.create.foundation.blockEntity.SmartBlockEntityTicker.m_155252_(SmartBlockEntityTicker.java:15) ~[create-1.20.1-0.5.1.d.jar%23197!/:0.5.1.d] {re:classloading}
	at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.m_142224_(LevelChunk.java:796) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:classloading}
	at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.m_142224_(LevelChunk.java:889) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:classloading}
	at net.minecraft.world.level.Level.m_46463_(Level.java:602) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:434) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:A}
	at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:1163) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
	at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:343) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:1073) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:906) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:280) ~[server-1.20.1-20230612.114412-srg.jar%23203!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:833) [?:?] {re:mixin,re:mixin,re:mixin,re:mixin}

Reproduction Steps

According to the player's description, the reason for the crash was the use of the Deployer to transport the Lava Bucket to energize the Blaze Burner.And I couldn't start the server after the crash, so I couldn't reproduce the bugs

Expected Result

Player feedback that the action can be implemented in single-player games.

Screenshots and Videos

No response

Crash Report or Log

https://gist.github.com/40b91fbdfcad526e47f407acbebc74de.git

Operating System

Windows Server 2019 (amd64) version 10.0

Mod Version

0.5.1d

Minecraft Version

1.20.1

Forge Version

47.1.58

Other Mods

No response

Additional Context

Based on the stacktrace, the server thread encountered an exception with the following sequence of method calls:

The error originated in the emptyContents() method of the BucketItem class in the net.minecraft.world.item package at line 170.
This method was called from the m_7203_() method in the same class at line 112.
The m_7203_() method was called from the activateInner() method in the DeployerHandler class of a mod called Create at line 336.
The activate() method in the DeployerHandler class was called at line 134.
The activate() method was called from the activate() method in the DeployerBlockEntity class at line 335.
The tick() method in the DeployerBlockEntity class was called at line 221.
The m_155252_() method in the SmartBlockEntityTicker class of the Create mod was called.
The m_142224_() method in the LevelChunk$BoundTickingBlockEntity class was called at line 796.
The m_142224_() method in the LevelChunk$RebindableTickingBlockEntityWrapper class was called at line 889.
The m_46463_() method in the Level class of the Minecraft server was called at line 602.
The m_8793_() method in the ServerLevel class of the Minecraft server was called at line 434.
commented

i am a bit concerned by this:

mixinextras-forge-0.2.0-beta.9.jar
who is requiring a beta?

commented

i am a bit concerned by this:

mixinextras-forge-0.2.0-beta.9.jar
who is requiring a beta?

This isn't the mod I assembled, seems downloaded by server-side(Mohist).

commented

unfortunately mohist is not fully forge compatible. we have seen a number of occasions where a modpack doesn't work on mohist but does on a pure forge server. make sure that you can reproduce your issue on a pure forge server. if not then you need to take it up with mohist.

commented

unfortunately mohist is not fully forge compatible. we have seen a number of occasions where a modpack doesn't work on mohist but does on a pure forge server. make sure that you can reproduce your issue on a pure forge server. if not then you need to take it up with mohist.

thanks for your help, I will try pure forge.