mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-28 05:35:45 +01:00
Derp
This commit is contained in:
parent
59218ae28c
commit
63bf0b2221
@ -100,6 +100,7 @@ public class Controllable extends Trait implements Toggleable {
|
|||||||
Constructor<? extends Controller> innerConstructor = null;
|
Constructor<? extends Controller> innerConstructor = null;
|
||||||
try {
|
try {
|
||||||
innerConstructor = clazz.getConstructor(Controllable.class);
|
innerConstructor = clazz.getConstructor(Controllable.class);
|
||||||
|
innerConstructor.setAccessible(true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -135,7 +136,7 @@ public class Controllable extends Trait implements Toggleable {
|
|||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class AirController implements Controller {
|
public class AirController implements Controller {
|
||||||
boolean paused = false;
|
boolean paused = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -178,7 +179,7 @@ public class Controllable extends Trait implements Toggleable {
|
|||||||
void run(Player rider);
|
void run(Player rider);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class GroundController implements Controller {
|
public class GroundController implements Controller {
|
||||||
private void jump() {
|
private void jump() {
|
||||||
boolean allowed = getHandle().onGround;
|
boolean allowed = getHandle().onGround;
|
||||||
if (!allowed)
|
if (!allowed)
|
||||||
|
Loading…
Reference in New Issue
Block a user