mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-20 12:09:34 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e155c69b20 | ||
|
|
82622d1e15 |
No files matched your search
@@ -243,7 +243,10 @@ public interface IStructureDefinition<T> {
|
|||||||
basePositionA,
|
basePositionA,
|
||||||
basePositionB,
|
basePositionB,
|
||||||
basePositionC,
|
basePositionC,
|
||||||
ignoreBlockUnloaded((e, w, x, y, z) -> e.spawnHint(object, world, x, y, z, trigger)),
|
ignoreBlockUnloaded((e, w, x, y, z) -> {
|
||||||
|
e.spawnHint(object, world, x, y, z, trigger);
|
||||||
|
return true;
|
||||||
|
}),
|
||||||
"spawnHint");
|
"spawnHint");
|
||||||
} else {
|
} else {
|
||||||
StructureUtility.iterateV2(
|
StructureUtility.iterateV2(
|
||||||
@@ -256,7 +259,10 @@ public interface IStructureDefinition<T> {
|
|||||||
basePositionA,
|
basePositionA,
|
||||||
basePositionB,
|
basePositionB,
|
||||||
basePositionC,
|
basePositionC,
|
||||||
ignoreBlockUnloaded((e, w, x, y, z) -> e.placeBlock(object, world, x, y, z, trigger)),
|
ignoreBlockUnloaded((e, w, x, y, z) -> {
|
||||||
|
e.placeBlock(object, world, x, y, z, trigger);
|
||||||
|
return true;
|
||||||
|
}),
|
||||||
"placeBlock");
|
"placeBlock");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ public class InventoryUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static class ItemStackCounterImpl implements ItemStackCounter {
|
private static class ItemStackCounterImpl implements ItemStackCounter {
|
||||||
private final Map<ItemStack, Integer> store = new ItemStackMap<>();
|
private final Map<ItemStack, Integer> store = new ItemStackMap<>(true);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void add(ItemStack stack, int stackSize) {
|
public void add(ItemStack stack, int stackSize) {
|
||||||
|
|||||||
Reference in new issue
Block a user