Comments (4)
Hi there, I'm currently away on holiday so I won't be working on it for a little while. I hope to get on to it when I get back, some time a week (+) from now
from runelite-bank-memory-plugin.
Update: Was able to work around this by checking whether if the world type is both seasonal and deadman:
public static BankWorldType forWorld(EnumSet<WorldType> worldTypes) {
if (worldTypes.contains(WorldType.SEASONAL)) {
return worldTypes.contains(WorldType.DEADMAN) ? BankWorldType.DEADMAN_TOURNAMENT : BankWorldType.LEAGUE;
}
if (worldTypes.contains(WorldType.TOURNAMENT_WORLD)) {
return BankWorldType.TOURNAMENT;
}
if (worldTypes.contains(WorldType.DEADMAN)) {
return BankWorldType.DEADMAN;
}
return BankWorldType.DEFAULT;
}
Huzzah!
from runelite-bank-memory-plugin.
Thank you @Septem151 for resolving this with the following commits:
from runelite-bank-memory-plugin.
Hi there, I'm currently away on holiday so I won't be working on it for a little while. I hope to get on to it when I get back, some time a week (+) from now
When you get the chance, I've submitted a PR #6 to fix this.
However, there's a slight problem (that can be addressed later on). You're using different world types for DMM, DMM tournament, and leagues, but the new net.runelite.WorldType enum only contains enums for TOURNAMENT_WORLD (which includes DMM tournaments), DEADMAN (which includes DMM), and SEASONAL (which contains both Leagues and Seasonal DMM).
Therefore the "DEADMAN_TOURNAMENT" and "DEADMAN" BankWorldTypes will become the same, with one of them not being used anymore. Can't simply delete the BankWorldType enum for it because of this comment:
// NB: changing these name will break automatic JSON deserialisation of existing saves
So for now, the PR just fixes the issue of building for the plugin hub, but the aforementioned is an issue that needs to be looked at further.
from runelite-bank-memory-plugin.
Related Issues (20)
- Dont display Bank filler HOT 3
- Have bank items appear in same order as they do in the bank
- Is it possible to add an export option? HOT 7
- Feature request: Sort items by price HOT 2
- Feature Request: Item tooltips HOT 4
- Jagex Launcher doesn't save "current bank" tab HOT 10
- Current bank Tab HOT 3
- Potential contribution to WikiSync data?
- Feature Request: Other storages
- Update the bank with deposit box HOT 1
- Plugin is currently incompatible and requires author to update it. HOT 1
- Plugin requires an update by author HOT 1
- Client fps stutter/lag when withdrawing HOT 1
- Bank value incorrect
- Feature Request: Add an interface panel like the one Inventory Viewer has HOT 1
- Feature Request: Remember seed vault HOT 2
- [Feature] Group ironman bank HOT 1
- Request - Option to auto-save latest snapshot on logout
- Large number of `null` in list HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runelite-bank-memory-plugin.