From ccd4833148d2d2352bceb01f3f29e27f2c791809 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Thu, 3 Mar 2022 14:51:27 +0100 Subject: [PATCH] Splash of Smoke - Removed nbt side-effects of the fan processing recipe check for ground items - Fixes intersecting fan streams making passing ground items unable to be processed --- .../processing/InWorldProcessing.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/processing/InWorldProcessing.java b/src/main/java/com/simibubi/create/content/contraptions/processing/InWorldProcessing.java index e583284c0..47c42026d 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/processing/InWorldProcessing.java +++ b/src/main/java/com/simibubi/create/content/contraptions/processing/InWorldProcessing.java @@ -76,13 +76,9 @@ public class InWorldProcessing { if (compound.contains("Processing")) { CompoundTag processing = compound.getCompound("Processing"); - if (Type.valueOf(processing.getString("Type")) != type) { - boolean canProcess = type.canProcess(entity.getItem(), entity.level); - processing.putString("Type", type.name()); - if (!canProcess) - processing.putInt("Time", -1); - return canProcess; - } else if (processing.getInt("Time") >= 0) + if (Type.valueOf(processing.getString("Type")) != type) + return type.canProcess(entity.getItem(), entity.level); + else if (processing.getInt("Time") >= 0) return true; else if (processing.getInt("Time") == -1) return false; @@ -445,12 +441,10 @@ public class InWorldProcessing { }, NONE { @Override - public void spawnParticlesForProcessing(Level level, Vec3 pos) { - } + public void spawnParticlesForProcessing(Level level, Vec3 pos) {} @Override - public void affectEntity(Entity entity, Level level) { - } + public void affectEntity(Entity entity, Level level) {} @Override public boolean canProcess(ItemStack stack, Level level) {