mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #567] [MERGED] Farming task #4090
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/2006-Scape/2006Scape/pull/567
Author: @advnau
Created: 1/30/2023
Status: ✅ Merged
Merged: 2/1/2023
Merged by: @Dark98
Base:
master← Head:farming-task📝 Commits (7)
3953cbaFiremaking: Fix some text (#548)a295c68Network cleanup (#552)78c3890Redo StaticNpcList constants (#553)aff43d9Bump netty-all from 4.0.34.Final to 4.1.42.Final in /2006Scape Server (#555)b9f0fb3Converted FarmingTask to CycleEventd2fadd9Removed redundant tick system.3f3d577Remove redundant tick system+convert farmingtask📊 Changes
4 files changed (+14 additions, -234 deletions)
View changed files
📝
2006Scape Server/src/main/java/com/rs2/GameEngine.java(+0 -14)📝
2006Scape Server/src/main/java/com/rs2/game/content/skills/farming/FarmingTask.java(+14 -10)➖
2006Scape Server/src/main/java/com/rs2/tick/Scheduler.java(+0 -59)➖
2006Scape Server/src/main/java/com/rs2/tick/Tick.java(+0 -151)📄 Description
Just noticed what appears to be an issue there is the Tick System here: https://github.com/2006-Scape/2006Scape/tree/master/2006Scape%20Server/src/main/java/com/rs2/tick
We already have a system "CycleEvents" for these tick based interactions.
That tick system is only used in the class https://github.com/2006-Scape/2006Scape/blob/master/2006Scape%20Server/src/main/java/com/rs2/game/content/skills/farming/FarmingTask.java
HOWEVER, this tick is never submitted to the gameengine for processing and the schedule/tick system is never called during the server loop.
As a result the following code is never called

It appears that this code is related to farming and the state updating.
This PR removes a redundant and incompletely implemented tick system and converts the farming task to a cycle event. The event is not submitted for scheduling. As a result, this will not affect functionality. If the skill works correctly, the farmingtask can be removed and any methods called by it related to the state changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.