mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 09:37:35 +01:00
Explicit types for 1.14 and 1.15
This commit is contained in:
parent
981c1a73be
commit
f9bb877e85
@ -1188,8 +1188,9 @@ public class NMSImpl implements NMSBridge {
|
||||
if (entity instanceof Player) {
|
||||
((Player) entity).setSneaking(sneaking);
|
||||
}
|
||||
EntityPose pose = sneaking ? EntityPose.SNEAKING : EntityPose.STANDING;
|
||||
try {
|
||||
ENTITY_SETPOSE.invoke(getHandle(entity), sneaking ? EntityPose.SNEAKING : EntityPose.STANDING);
|
||||
ENTITY_SETPOSE.invoke(getHandle(entity), pose);
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -1206,8 +1206,9 @@ public class NMSImpl implements NMSBridge {
|
||||
if (entity instanceof Player) {
|
||||
((Player) entity).setSneaking(sneaking);
|
||||
}
|
||||
EntityPose pose = sneaking ? EntityPose.CROUCHING : EntityPose.STANDING;
|
||||
try {
|
||||
ENTITY_SETPOSE.invoke(getHandle(entity), sneaking ? EntityPose.CROUCHING : EntityPose.STANDING);
|
||||
ENTITY_SETPOSE.invoke(getHandle(entity), pose);
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user