Revert "Fix noclip (#302)" (#303)

This reverts commit 521ae52e4c.
This commit is contained in:
Daniel Ginovker
2019-12-18 20:02:13 -05:00
committed by GitHub
parent 521ae52e4c
commit cfa59f4a4d
10 changed files with 47 additions and 30 deletions
@@ -511,7 +511,7 @@ public abstract class Player {
PestControl.leaveWaitingBoat(this);
getPlayerAssistant().movePlayer(2657, 2639, 0);
}
if (hasNpc) {
if (hasNpc == true) {
getSummon().pickUpClean(this, summonId);
}
@@ -599,7 +599,7 @@ public abstract class Player {
lastY = absY;
lastH = heightLevel;
CycleEventHandler.getSingleton().stopEvents(this);
if (hasNpc) {
if (hasNpc == true) {
getSummon().pickUpClean(this, summonId);
}
if (forceLogout || System.currentTimeMillis() - logoutDelay > 2500) {
@@ -725,6 +725,10 @@ public abstract class Player {
return validClient(getClient(id));
}
public boolean validClient(String name) {
return validClient(getClient(name));
}
public boolean validClient(Client client) {
return client != null && !client.disconnected;
}