Skip to content

Commit

Permalink
fix: 🐛 Fixed fluid filters in pump upgrades so that they can be set a…
Browse files Browse the repository at this point in the history
…nd cleared properly
  • Loading branch information
P3pp3rF1y committed Dec 15, 2024
1 parent c3f2e1c commit e678243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=false

mod_id=sophisticatedcore
mod_group_id=sophisticatedcore
mod_version=1.0.0
mod_version=1.0.1
sonar_project_key=sophisticatedcore:SophisticatedCore
github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedCore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ private CompoundTag serializeSetFluidData(int index, FluidStack fluid) {
public boolean handleMessage(CompoundTag data) {
if (data.contains(DATA_FLUID)) {
CompoundTag fluidData = data.getCompound(DATA_FLUID);
FluidStack fluid = FluidStack.loadFluidStackFromNBT(data.getCompound("fluid"));
if (!fluid.isEmpty()) {
setFluid(fluidData.getInt("index"), fluid);
}
FluidStack fluid = FluidStack.loadFluidStackFromNBT(fluidData.getCompound("fluid"));
setFluid(fluidData.getInt("index"), fluid);
return true;
}
return false;
Expand Down

0 comments on commit e678243

Please sign in to comment.