Push forward

This commit is contained in:
2026-07-14 15:09:17 +08:00
parent dd3efffa76
commit c6819e3329
92 changed files with 207 additions and 207 deletions
@@ -37,7 +37,7 @@ public class SleepUntilTimeBlockEntityTickInvoker implements TickingBlockEntity
@Override
public void tick() {
//noinspection ConstantConditions
long tickTime = this.sleepingBlockEntity.getLevel().getRedstoneGameTime(); // Luminol - Regionized threading for sleeping block entity
long tickTime = this.sleepingBlockEntity.getLevel().getRedstoneGameTime(); // Shiroha - Regionized threading for sleeping block entity
if (tickTime >= this.sleepUntilTickExclusive) {
((SleepingBlockEntity) this.sleepingBlockEntity).setTicker(this.delegate);
this.delegate.tick();
@@ -65,9 +65,9 @@ public class ChunkSectionInventoryEntityTracker extends ChunkSectionEntityMoveme
return tracker;
}
// Luminol start - region threading for lithium sleeping block entity
// Shiroha start - region threading for lithium sleeping block entity
public boolean hasUser() {
return this.userCount > 0;
}
// Luminol end
// Shiroha end
}
@@ -65,9 +65,9 @@ public class ChunkSectionItemEntityMovementTracker extends ChunkSectionEntityMov
return tracker;
}
// Luminol start - region threading for lithium sleeping block entity
// Shiroha start - region threading for lithium sleeping block entity
public boolean hasUser() {
return this.userCount > 0;
}
// Luminol end
// Shiroha end
}
@@ -23,9 +23,9 @@ import net.minecraft.world.item.ItemStack;
public class ItemOverstackUtils {
public static float getItemStackSignalStrength(int maxStackSize, ItemStack itemStack) {
float result = (float) itemStack.getCount() / Math.min(maxStackSize, itemStack.getMaxStackSize());
/*if (LeavesConfig.modify.oldMC.allowGrindstoneOverstacking && CurseEnchantedBook.isCursedEnchantedBook(itemStack)) { // Luminol
/*if (LeavesConfig.modify.oldMC.allowGrindstoneOverstacking && CurseEnchantedBook.isCursedEnchantedBook(itemStack)) { // Shiroha
return result;
}*/ // Luminol
}*/ // Shiroha
return Math.clamp(result, 0f, 1f);
}
}