Skip to content

Commit

Permalink
make press good
Browse files Browse the repository at this point in the history
  • Loading branch information
Shroopy committed Nov 27, 2024
1 parent f62a72e commit 319b3ed
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,18 @@ public boolean onBasin() {
public void tick() {
super.tick();

finished = false;
if (specifics.getKineticSpeed() == 0) {
running = false;
return;
}

Level level = getWorld();
BlockPos worldPosition = getPos();

if (!running || level == null) {
if (level != null && !level.isClientSide) {

if (specifics.getKineticSpeed() == 0)
return;
if (entityScanCooldown > 0)
entityScanCooldown--;
if (entityScanCooldown <= 0) {
Expand Down Expand Up @@ -190,6 +194,8 @@ public void tick() {
particleItems.clear();
specifics.onPressingCompleted();
blockEntity.sendData();
prevRunningTicks = runningTicks - 240;
runningTicks += getRunningTickSpeed() - 240;
return;
}

Expand Down

0 comments on commit 319b3ed

Please sign in to comment.