mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-05 00:31:57 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user