fix too lenient should skip check in ofBlocksTiered

This commit is contained in:
Glease committed 2022-08-12 21:13:32 +08:00
1 parent d33cdd79c4
commit c19ac860d4
3 files changed
+12 -6

No files matched your search

@@ -76,11 +76,9 @@ public class ConstructableUtility {
} else if (constructable instanceof ISurvivalConstructable) {
int built = ((ISurvivalConstructable) constructable)
.survivalConstruct(aStack, BUDGET, IItemSource.fromPlayer(playerMP), playerMP);
if (built > 0)
// TODO somehow notify extensions that their inventory might have been modified and need to be
// synced to client or saved
playerMP.inventory.markDirty();
else if (built == -1) {
if (built > 0) {
playerMP.addChatMessage(new ChatComponentTranslation("structurelib.autoplace.built_stat", built));
} else if (built == -1) {
playerMP.addChatMessage(new ChatComponentTranslation("structurelib.autoplace.complete"));
}
setLastUseTickToStackTag(aStack);