More code for #20
Started work on 1.8 R2 to 1.9 R2 with some slight errors, will be fixed later. 1.8 R1 should be working though.
This commit is contained in:
@@ -83,6 +83,7 @@ public class Hologram {
|
||||
}
|
||||
|
||||
public void generatePackets(MinecraftVersion version) {
|
||||
// TODO: Check when this method was changed (1.9 R2 is giving an exception...
|
||||
Reflection.MethodInvoker gravityMethod = (version.isAboveOrEqual(MinecraftVersion.V1_9_R2) ?
|
||||
Reflection.getMethod(ENTITY_CLAZZ, "setNoGravity", boolean.class) :
|
||||
Reflection.getMethod(ENTITY_ARMOR_STAND_CLAZZ, "setGravity", boolean.class));
|
||||
|
||||
Reference in New Issue
Block a user