Ancient Spellcraft

Ancient Spellcraft

6M Downloads

[Bug] Astral Projection crash

SfortzaPhantom opened this issue ยท 4 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Observed behaviour

I think this one isn't obvious, but when you use Astral Projection and then hit it by yourself, the game hangs.

Also this spell is, uh, laggy (or it works as intended?): you can only move in one side by pressing W (and it's quite unusual to do so, when you can move in four directions with WASD). But the main issue here is about the crash.

Expected behaviour

Probably, nothing? I wonder if that bug is related to how Minecraft renders the player (you can't self-hit).

Steps to reproduce

  1. Join the server
  2. Cast Astral Projection
  3. Fly a bit away from your original position
  4. Hit your original position
  5. Done!

Crashlog

https://gist.github.com/SfortzaPhantom/b909f62d79dd2074034503955069b0c8

Environment (Singleplayer/Server, etc.)

Issue present on both sides

Mod version

1.4.2

Forge version

1.12.2 - 14.23.5.2860

Other mods

Can be reproduced with only EBWizardry.

commented

This issue is potentially a duplicate of one of the following issues:

  • [#80] [Bug] Crash with Soul Scorch (66.67% match)
commented

You're potentially wrong Mr. Bot, and you basically misled me so I accidently closed it.

commented

The spell's controls are a bit clunky but you can freely move to any direction with W and turning the mouse.

Can't see anything related in the log file but it sounds straightforward to replicate the issue.
If a port would happen one day, I'll probably just rewrite this spell, in the meantime I'll check if this can be mitigated. Now that I think about it, I'm pretty sure I added Transience as an effect to this spell to mitigate this issue.. Were you hitting yourself in creative mode?

commented

Yes, in Creative one.

What about the issue:

[20:15:04] [Server thread/WARN] [minecraft/MinecraftServer]: Player SfortzaPhantom tried to attack an invalid entity

This happens when I try to hit myself, and doesn't occur when others do that. A theory, then: maybe there is some kind of an issue with FakePlayer hitting real player or something like that?