mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-12 03:11:05 +01:00
Adjust for compiler error
This commit is contained in:
parent
db825cce72
commit
7de789d9a4
@ -1219,8 +1219,7 @@ public class NMSImpl implements NMSBridge {
|
||||
|
||||
@Override
|
||||
public void setSitting(Ocelot ocelot, boolean sitting) {
|
||||
EntityPose pose = sitting ? EntityPose.CROUCHING : EntityPose.STANDING;
|
||||
getHandle(ocelot).setPose(pose);
|
||||
setSneaking(ocelot, sitting);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1233,7 +1232,8 @@ public class NMSImpl implements NMSBridge {
|
||||
if (entity instanceof Player) {
|
||||
((Player) entity).setSneaking(sneaking);
|
||||
}
|
||||
getHandle(entity).setPose(sneaking ? EntityPose.CROUCHING : EntityPose.STANDING);
|
||||
EntityPose pose = sneaking ? EntityPose.CROUCHING : EntityPose.STANDING;
|
||||
getHandle(entity).setPose(pose);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user