make press good

This commit is contained in:
Shroopy 2024-11-26 17:13:31 -08:00
parent f62a72e38c
commit 319b3edfd2

View file

@ -128,14 +128,18 @@ public class PressingBehaviour extends BeltProcessingBehaviour {
public void tick() { public void tick() {
super.tick(); super.tick();
finished = false;
if (specifics.getKineticSpeed() == 0) {
running = false;
return;
}
Level level = getWorld(); Level level = getWorld();
BlockPos worldPosition = getPos(); BlockPos worldPosition = getPos();
if (!running || level == null) { if (!running || level == null) {
if (level != null && !level.isClientSide) { if (level != null && !level.isClientSide) {
if (specifics.getKineticSpeed() == 0)
return;
if (entityScanCooldown > 0) if (entityScanCooldown > 0)
entityScanCooldown--; entityScanCooldown--;
if (entityScanCooldown <= 0) { if (entityScanCooldown <= 0) {
@ -190,6 +194,8 @@ public class PressingBehaviour extends BeltProcessingBehaviour {
particleItems.clear(); particleItems.clear();
specifics.onPressingCompleted(); specifics.onPressingCompleted();
blockEntity.sendData(); blockEntity.sendData();
prevRunningTicks = runningTicks - 240;
runningTicks += getRunningTickSpeed() - 240;
return; return;
} }