GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.72k stars 676 forks source link

Mounting cod on player #3520

Open Foorcee opened 1 year ago

Foorcee commented 1 year ago

Describe the bug

In the JE, a new cod is spawned and mounted on the player. In the BE, the cod is not mounted on the player.

To Reproduce

Spigot code:

if (player.isEmpty()) {
    player.addPassenger(player.getWorld().spawn(player.getLocation(), Cod.class, cod -> {
//          cod.setInvisible(true);
            cod.setInvulnerable(true);
            cod.setSilent(true);
            cod.setCollidable(false);
            cod.setGravity(false);
            cod.setAI(false);
        }));
}

Expected behaviour

The cod should be mounted on the player's head.

Screenshots / Videos

Server Version and Plugins

This server is running Paper version git-Paper-"476ef25" (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 476ef25 on HEAD)

Geyser Dump

https://dump.geysermc.org/OY8eoIovbvqSTzl1DuZu0unJPYmcCwhJ

Geyser Version

3.1.2-SNAPSHOT (git-9cbaeb7b-b195)

Minecraft: Bedrock Edition Device/Version

3.1.2-SNAPSHOT (git-9cbaeb7b-b195)

Additional Context

No response

Camotoy commented 1 year ago

From the Bedrock player's point of view, this affects all players.