mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-06 10:25:00 +01:00
make press good
This commit is contained in:
parent
f62a72e38c
commit
319b3edfd2
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue