Set no gravity to stop appearing in disguise parser

This commit is contained in:
libraryaddict 2020-04-27 17:17:48 +12:00
parent 5b5cdd0395
commit 1d7fd61556
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -15,6 +15,7 @@ import me.libraryaddict.disguise.DisguiseAPI;
import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.DisguiseConfig;
import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.LibsDisguises;
import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.DisguiseUtilities;
import me.libraryaddict.disguise.utilities.parser.RandomDefaultValue;
import me.libraryaddict.disguise.utilities.reflection.NmsAddedIn; import me.libraryaddict.disguise.utilities.reflection.NmsAddedIn;
import me.libraryaddict.disguise.utilities.reflection.NmsVersion; import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager;
@ -412,6 +413,7 @@ public class FlagWatcher {
return getData(MetaIndex.ENTITY_NO_GRAVITY); return getData(MetaIndex.ENTITY_NO_GRAVITY);
} }
@RandomDefaultValue
public void setNoGravity(boolean noGravity) { public void setNoGravity(boolean noGravity) {
setData(MetaIndex.ENTITY_NO_GRAVITY, noGravity); setData(MetaIndex.ENTITY_NO_GRAVITY, noGravity);
sendData(MetaIndex.ENTITY_NO_GRAVITY); sendData(MetaIndex.ENTITY_NO_GRAVITY);