Iron's Spells 'n Spellbooks

Iron's Spells 'n Spellbooks

24M Downloads

[Bug] Entity duplication when a shield spell is used on a portal teleporting from the nether to the overworld

GolfinhoVoador opened this issue ยท 2 comments

commented

Observed behaviour

After a friend of ours used a shield spell in inside a portal spell, nothing happened, however when someone entered the portal, they got teleported to the nether and a mysterious white wall appeared in front of them (thousands of shields inside eachother) and this crashed not only their game, but the dedicated server too.

What seems to be happening is that for some reason when the shield entity is being teleported from the nether to the overworld, it gets duplicated instead of being teleported. If you take two portals in the same dimension and spawn a shield entity in one of them, the teleportation sound will play every frame, however the shield will not move.

Video showing this: (LOUD NOISES)
https://github.com/user-attachments/assets/56592af2-32d0-44be-bec4-9a843719d32d

Expected behaviour

After using the shield spell inside a portal spell in the nether that is connected to another in the overworld, nothing should happen or the shield should be teleported to the other side immediately.

Steps to reproduce

  1. Cast the portal spell in the overworld and again in the nether.
  2. Cast a shield spell inside the portal in the nether. (We tested this and it only works on the portal that is in the nether)
  3. The shield entity will get duplicated every frame, eventually leading to a crash. (I uploaded the crash report but it doesn't say anything useful because I exited the game before it crashed my computer)
  • This was tested in both SinglePlayer and Dedicated Servers

Server Type

Dedicated Server

Crashlog

https://gist.github.com/GolfinhoVoador/62f17a008b1bf942f88e8631694178be

Iron's Spells N Spellbooks version

1.20.1-3.4.0.11

Forge version

Forge 47.4.0

Other mods

Tested without any mods other than dependencies:
Caelus API 3.2.0+1.20.1
Curios API 5.14.1+1.20.1
GeckoLib 4 4.7.4
Player Animator 1.0.2-rc1+1.20

Crashlog Check

  • I understand if this is a crashbug and I did not attach a crashlog, this will not be handled

Fabric Check

  • I understand if I am using Farbic APIs or Connector, this will not be handled
commented

Also tested in 1.21.1, doesn't happen there.
Edit: Tested in 1.21 and the bug also occurs.

commented

Also adding an entity blacklist for the portal spell would be nice for server maintainers to prevent conflicts with other mods or bugs like these