Push forward
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user