squaremap

squaremap

1.9k Downloads

Missing `SquaremapPlayerCapability` stops players from respawning

irisfofs opened this issue ยท 1 comments

commented
  • Minecraft version: 1.20.1
  • Squaremap version: 1.2.0
  • Modloader: Forge 47.3.0

Steps to reproduce

  1. Create new 1.20.1 Forge instance (47.3.0) and install Squaremap (1.2.0).
  2. Create a new world and die (/kill).
  3. Try to respawn.

Instead of respawning, the following errors appear:

[14:19:38] [Server thread/ERROR] [ne.mi.ev.EventBus/EVENTBUS]: Exception caught during firing event: No xyz.jpenilla.squaremap.forge.ForgePlayerManager$SquaremapPlayerCapability for player irisfofs
	Index: 1
	Listeners:
		0: NORMAL
		1: net.minecraftforge.eventbus.EventBus$$Lambda$4655/0x0000023a68b9f798@378f67c4
java.lang.IllegalStateException: No xyz.jpenilla.squaremap.forge.ForgePlayerManager$SquaremapPlayerCapability for player irisfofs
	at TRANSFORMER/[email protected]/xyz.jpenilla.squaremap.forge.ForgePlayerManager.lambda$cap$3(ForgePlayerManager.java:114)
        ...(trimmed for posting, full log attached)
[14:19:38] [Server thread/ERROR] [minecraft/PacketUtils]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundClientCommandPacket@34a6d732, suppressing error

I ran into this on my heavily modded Forge server when someone tried to use the End exit portal, but upon digging in it seems to occur even with no other mods present and for any sort of respawn. On the dedicated server, it absolutely spammed the server console with these errors, but in singleplayer they only appear once.

We've been playing for several weeks, so I have no idea how we didn't encounter this sooner. The reproduction is so minimal that I'm concerned some sort of state is leaking between Prism instances, though I'm not sure what or how.

2024-08-27-2.log

commented

Duplicate #201