mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 07:27:15 +01:00
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
This commit is contained in:
parent
6420f54194
commit
ccd4833148
1 changed files with 5 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue