Renamed messages from "option" to "method" to make things clearer
Added better support for tab completion and ignoring the first arg of falling blocks and item disguises, so /disguise fallingblock setburning - Is now possible Fixed itemstack parsing returning illegal/unwanted air block
This commit is contained in:
@@ -126,9 +126,7 @@ public class ReflectionManager {
|
||||
if (obj.isAnnotationPresent(NmsRemovedIn.class)) {
|
||||
NmsRemovedIn removed = obj.getAnnotation(NmsRemovedIn.class);
|
||||
|
||||
if (removed.val().isSupported()) {
|
||||
return false;
|
||||
}
|
||||
return !removed.val().isSupported();
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -716,7 +714,7 @@ public class ReflectionManager {
|
||||
|
||||
public static double getPing(Player player) {
|
||||
try {
|
||||
return (double) pingField.getInt(ReflectionManager.getNmsEntity(player));
|
||||
return pingField.getInt(ReflectionManager.getNmsEntity(player));
|
||||
}
|
||||
catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
|
Reference in New Issue
Block a user