Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Fix inability to toggle sitting of parrots
Dieser Commit ist enthalten in:
Ursprung
d0d01714aa
Commit
7f5d81772b
@ -61,7 +61,13 @@ public class TameableEntity extends AnimalEntity {
|
|||||||
// Note: Must be set for wolf collar color to work
|
// Note: Must be set for wolf collar color to work
|
||||||
if (entityMetadata.getValue().isPresent()) {
|
if (entityMetadata.getValue().isPresent()) {
|
||||||
// Owner UUID of entity
|
// Owner UUID of entity
|
||||||
Entity entity = session.getEntityCache().getPlayerEntity(entityMetadata.getValue().get());
|
UUID uuid = entityMetadata.getValue().get();
|
||||||
|
Entity entity;
|
||||||
|
if (uuid.equals(session.getPlayerEntity().getUuid())) {
|
||||||
|
entity = session.getPlayerEntity();
|
||||||
|
} else {
|
||||||
|
entity = session.getEntityCache().getPlayerEntity(uuid);
|
||||||
|
}
|
||||||
// Used as both a check since the player isn't in the entity cache and a normal fallback
|
// Used as both a check since the player isn't in the entity cache and a normal fallback
|
||||||
if (entity == null) {
|
if (entity == null) {
|
||||||
// Set to tame, but indicate that we are not the player that owns this
|
// Set to tame, but indicate that we are not the player that owns this
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren