mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-05 08:39:04 +00:00
Fletching fix
Should fix 2 people not being able to fletch at once. Let me know how it works - mr extremez :)
This commit is contained in:
@@ -20,11 +20,10 @@ public class LogCuttingInterface {
|
||||
}
|
||||
|
||||
public static void Interface(Client c, int item) {
|
||||
if (c.playerIsFletching == true && item > 1510 && item < 1522) {
|
||||
c.getActionSender().sendMessage("You are already fletching!");
|
||||
c.getPlayerAssistant().closeAllWindows();
|
||||
if (c.playerIsFletching == true && (item > 1510 && item < 1522)) {
|
||||
LogCutting.resetFletching(c);
|
||||
return;
|
||||
} else if (item < 1510 && item > 1521) {
|
||||
} else if (c.playerIsFletching == true && (item < 1510 || item > 1521)) {
|
||||
c.playerIsFletching = false;
|
||||
c.getActionSender().sendMessage("Nothing interesting happens.");
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class Npc {
|
||||
updateRequired = true;
|
||||
}
|
||||
|
||||
public boolean requestTransformTime(Client player, int itemId, int animation, final int currentId, final int newId, int transformTime, int npcId) {
|
||||
public boolean requestTransformTime(Client player, int itemId, int animation, final int currentId, final int newId, int transformTime, final int npcId) {
|
||||
if (!player.getItemAssistant().playerHasItem(itemId)) {
|
||||
player.getActionSender().sendMessage("You need " + ItemAssistant.getItemName(itemId).toLowerCase() + " to do that.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user