mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
1 parent
21fb6bb1c0
commit
94e580cb90
2 files changed
+4
-4
No files matched your search
@@ -193,7 +193,7 @@ public class InventoryAdapter implements IInventory, INBTTagable {
|
||||
if (stack == null)
|
||||
continue;
|
||||
|
||||
if (StackUtils.equals(Blocks.air, queried)) {
|
||||
if (StackUtils.equals(Blocks.bedrock, queried)) {
|
||||
itemCount += stack.stackSize;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ public class TriggerLowSoil extends Trigger {
|
||||
return false;
|
||||
|
||||
ItemStack filter;
|
||||
if (parameter == null || parameter.getItemStack() == null)
|
||||
filter = new ItemStack(Blocks.air, threshold, -1);
|
||||
else {
|
||||
if (parameter == null || parameter.getItemStack() == null) {
|
||||
filter = new ItemStack(Blocks.bedrock, threshold);
|
||||
} else {
|
||||
filter = parameter.getItemStack().copy();
|
||||
filter.stackSize = threshold;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user