mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Fix paper & bounding boxes hating each other
This commit is contained in:
parent
2e22dad323
commit
6d559b1887
@ -410,6 +410,12 @@ public class ReflectionManager {
|
||||
}
|
||||
}
|
||||
|
||||
// Workaround for paper being 2 smart 4 me
|
||||
getNmsMethod("Entity", "setPosition", double.class, double.class, double.class)
|
||||
.invoke(entityObject, 1, 1, 1);
|
||||
getNmsMethod("Entity", "setPosition", double.class, double.class, double.class)
|
||||
.invoke(entityObject, 0, 0, 0);
|
||||
|
||||
return entityObject;
|
||||
} catch (Exception e) {
|
||||
DisguiseUtilities.getLogger()
|
||||
@ -1369,7 +1375,8 @@ public class ReflectionManager {
|
||||
public static Object getEntityType(EntityType entityType) {
|
||||
try {
|
||||
Object val = entityTypesAMethod.invoke(null,
|
||||
entityType.getName() == null ? entityType.name().toLowerCase(Locale.ENGLISH) : entityType.getName());
|
||||
entityType.getName() == null ? entityType.name().toLowerCase(Locale.ENGLISH) :
|
||||
entityType.getName());
|
||||
|
||||
if (NmsVersion.v1_14.isSupported()) {
|
||||
return ((Optional<Object>) val).orElse(null);
|
||||
|
Loading…
Reference in New Issue
Block a user