Create

Create

86M Downloads

Server halting from exception in server tick loop

bark-ing opened this issue ยท 1 comments

commented

Describe the Bug

Whenever one of the trains run over an enderman, it halts the server and crashes instantly.

Important crash report details:

Description: Exception in server tick loop
 
java.lang.ClassCastException: class com.simibubi.create.content.logistics.trains.entity.CarriageContraptionEntity cannot be cast to class net.minecraft.world.entity.LivingEntity (com.simibubi.create.content.logistics.trains.entity.CarriageContraptionEntity is in module [email protected] of loader 'TRANSFORMER' @58601e7a; net.minecraft.world.entity.LivingEntity is in module [email protected] of loader 'TRANSFORMER' @58601e7a)

Reproduction Steps

  1. Make a train on a railway
  2. Spawn an enderman
  3. Run over the enderman

Expected Result

Doesn't halt/crash the server.

Screenshots and Videos

No response

Crash Report or Log

https://pastebin.com/SX8dnGCr

Operating System

Windows 10

Mod Version

0.5.0f

Minecraft Version

1.19.2

Forge Version

43.1.52

Other Mods

https://pastebin.com/SLdeuQwG

Additional Context

This is being ran on a server.

commented

The first line of the stack trace is [...] at net.ldm.mo_enchants.enchantment.helpers.BonusDamageEnchantmentHelper.onLivingDamage
The crash is caused by this "Mo' Enchants" mod. It is likely trying to interpret the train as a "living" entity, probably because it wrongfully expects all damage sources to be "living" entities.