Skip to content

Commit

Permalink
fix filtersOut nbt
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrazar committed Dec 1, 2024
1 parent 33bcd6a commit dde6563
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

public class CapabilityConnectableProcessing implements INBTSerializable<CompoundTag>, IConnectableItemProcessing {

public static final int DEFAULT_ITEMS_PER = 4;
public static final int IO_DEFAULT_SPEED = 30; // TODO CONFIG

public static class Factory implements Callable<IConnectableItemProcessing> {

Expand Down Expand Up @@ -55,7 +53,6 @@ public CompoundTag serializeNBT() {
if (inventoryFace != null) {
result.putString("inventoryFace", inventoryFace.toString());
}
// result.putBoolean("needsRedstone", this.needsRedstone());
return result;
}

Expand All @@ -70,10 +67,13 @@ public void deserializeNBT(CompoundTag nbt) {
if (filters != null) {
this.filters.deserializeNBT(filters);
}
CompoundTag filtersOut = nbt.getCompound("filtersOut");
if (filtersOut != null) {
this.filtersOut.deserializeNBT(filtersOut);
}
if (nbt.contains("inventoryFace")) {
inventoryFace = Direction.byName(nbt.getString("inventoryFace"));
}
// this.needsRedstone(nbt.getBoolean("needsRedstone"));
}

@Override
Expand Down

0 comments on commit dde6563

Please sign in to comment.