dougkeller / autosort Goto Github PK
View Code? Open in Web Editor NEWAutosort Plugin for Bukkit 1.9
Autosort Plugin for Bukkit 1.9
Expectation:
Chest has every item just sorted in order
Reality:
Items are Oredictionaried to be whatever appears first. (example: if i have 14 salmon and 10 cod, i will have 24 salmon or cod, whichever appears first in the arbitrary sort order) This happens with multiple items... different stone types, fish, leaves.
Also Breaks economyshopgui, though im not sure if that's an issue with this plugin or that one, given that it uses a chest as its gui.
A user of one of my plugins (Shopkeepers) reported this issue to me: Whenever he interacts with the editor inventory view of the Shopkeepers plugins (a custom chest-typed inventory with items acting as buttons), this plugins reorders the items of that inventory and thereby breaks it.
Custom inventories created by other plugins are probably affected by the same issue.
This plugin would probably have to somehow differentiate between regular chest inventories and custom inventories. There doesn't seem to be a definite solutions to this, but a first heuristic could be to check the inventory's InventoryHolder, and ignore the inventory if this holder is either null, or does not correspond to an actual chest block in the world.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.