src/main/java/de/viper/survivalplus/commands/SitCommand.java aktualisiert
This commit is contained in:
@@ -45,9 +45,12 @@ public class SitCommand implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Setze den Spieler direkt auf dem Block
|
||||
// Setze den Spieler mittig auf den Block und leicht oberhalb (Fix)
|
||||
Location location = player.getLocation();
|
||||
location.setY(location.getBlockY()); // Direkt auf dem Block (keine Y-Verschiebung)
|
||||
location.setX(location.getBlockX() + 0.5);
|
||||
location.setY(location.getBlockY() + 0.25);
|
||||
location.setZ(location.getBlockZ() + 0.5);
|
||||
|
||||
sitListener.sitPlayer(player, location);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user