Oritech

Oritech

588k Downloads

Enderic Laser sometimes crashes the game when attacking hostile mobs

JaoHundred opened this issue ยท 4 comments

commented

Issue description

Enderic Laser seems to crash the game when attacking hostile entities, it does not have a guaranteed way of reproducing from my understanding it just happens randomly.

Steps to reproduce

  1. place any enderic laser with a battery from the mod powah!
  2. energize it with an oritech energy cable
  3. place a machine extender addon under enderic laser and 2 hunter addon on it
  4. wait for the laser to target any hostile entities

Minecraft version

1.21.1 (Latest)

Platform

Neoforge

Loader version

21.1.117

Fabric API version

0.107.0+2.0.23+1.21.1

Oritech version

0.13.2

Other relevant versions

No response

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

https://mclo.gs/bmt714P

commented

Hi, I believe this is a compatibility issue with cobblemon, where cobblemon assumes that the player that attacked the mob is a real serverplayerentity, instead of just a custom playerentity. I think it's easiest to fix this on their side, but I'll check in with them to see if Oritech is actually doing something wrong here.
This mixin should be the cause of this crash: https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/java/com/cobblemon/mod/common/mixin/PlayerMixin.java#L169
I'll open an issue on their gitlab

commented

Just raised an issue on their sde: https://gitlab.com/cable-mc/cobblemon/-/issues/1460

commented

Thank you for your response and clarification, I took a look in their gitlab issues and it seems they will fix it in the next major cobblemon version(no known release date for now). Thank you again for the help and amazing mod.

commented

Since this was closed on cobblemons side with them fixing the issue, I'll close this ticket here aswell