Fix noclip (#302)

* Add bank area checks back since previously you could open a bank, and as long as you didn't open another interface you could abuse it

* Fix noclip (NEEDS TESTING)
This commit is contained in:
Daniel Ginovker
2019-12-18 17:35:12 -05:00
committed by GitHub
parent 62a22f8857
commit 521ae52e4c
10 changed files with 30 additions and 47 deletions
@@ -511,7 +511,7 @@ public abstract class Player {
PestControl.leaveWaitingBoat(this);
getPlayerAssistant().movePlayer(2657, 2639, 0);
}
if (hasNpc == true) {
if (hasNpc) {
getSummon().pickUpClean(this, summonId);
}
@@ -599,7 +599,7 @@ public abstract class Player {
lastY = absY;
lastH = heightLevel;
CycleEventHandler.getSingleton().stopEvents(this);
if (hasNpc == true) {
if (hasNpc) {
getSummon().pickUpClean(this, summonId);
}
if (forceLogout || System.currentTimeMillis() - logoutDelay > 2500) {
@@ -725,10 +725,6 @@ 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;
}