Comments (2)
An Update: The Second Gist has no problem, however the first gist still has the issue.
from spongevanilla.
The query with ITEM_STACK_EXACT
will in fact ONLY return item-stacks that exactly match.
So if you query for ItemStack.of(ItemTypes.COBBLESTONE, 1)
you will only get slots with cobblestone with quantity 1.
ItemStack stack = ItemStack.of(ItemTypes.COBBLESTONE, 1);
inventory.query(QueryOperationTypes.ITEM_STACK_EXACT.of(stack)).poll(2);
poll()
without limit would only remove from the first slot in the query result.
from spongevanilla.
Related Issues (20)
- Error during startup: "Critical injection failure"
- Chunk loading farmland generation crashes server HOT 2
- Error while loading worlds: "Encountered an unexpected exception" HOT 1
- Placing blocks while opening GUI block (chest / furnace) HOT 2
- spongevanilla-1.12.2-7.1.6-RC157 broken block physics HOT 3
- Furnace stops working/ HOT 2
- TabCompleteEvent is never fired for chat HOT 1
- Critical injection failure at startup HOT 1
- NPE on Listener ClientConnectionEvent.Disconnect when server is stopping. HOT 4
- ArrayIndexOutOfBoundsException HOT 3
- Error loading function pack (Tempest Box) HOT 1
- Creating a Team instance throws NPE from ScorePlayerTeam class HOT 1
- Offering Keys.POWERED or BlockTrait BooleanTraits.LEVER_POWERED to a lever doesnt update the block the lever is on. HOT 2
- Java Error: Cannot launch Invocation.target.exception HOT 1
- TileEntitySignCommandSendersMixin_API not applying
- InteractItemEvent not fired
- Plugin breaking change to ChangeBlockEvent.Break! HOT 15
- Incorrect block lighting
- ExperienceHolderData totalExpereince off by 1 HOT 1
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 spongevanilla.