mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Add workaround for mods that use non-standard entity spawn packets
This commit is contained in:
1 parent
bc06f67861
commit
51986d4af5
6 files changed
+62
-5
No files matched your search
@@ -4,6 +4,7 @@ import com.google.gson.Gson;
|
||||
import com.google.gson.JsonObject;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import com.moulberry.flashback.Flashback;
|
||||
import com.moulberry.flashback.PacketHelper;
|
||||
import com.moulberry.flashback.SneakyThrow;
|
||||
import com.moulberry.flashback.ext.LevelChunkExt;
|
||||
import com.moulberry.flashback.TempFolderProvider;
|
||||
@@ -634,6 +635,10 @@ public class ReplayServer extends IntegratedServer {
|
||||
}
|
||||
|
||||
positionUpdateSet.add(id);
|
||||
} else {
|
||||
byte yRot = (byte) Mth.floor(yaw * 256.0F / 360.0F);
|
||||
byte xRot = (byte) Mth.floor(pitch * 256.0F / 360.0F);
|
||||
this.getPlayerList().broadcastAll(PacketHelper.createTeleportForUnknown(id, x, y, z, yRot, xRot, onGround));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user