Skip to content

Commit

Permalink
fix #935
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Aug 10, 2023
1 parent ea05f64 commit 0ec6ecc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions FABRIC_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Change logging starts below:
- stop the rogue Deployer uprising, for now (#1013)
- fix plant-ness not being checked properly in some places (#1032)
- fix crash breaking blocks with wand of symmetry (#1048)
- fix performance issues with pipe connections (#935)
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,19 @@ public Storage<FluidVariant> provideHandler() {

public static class FluidHandler extends FlowSource {
StorageProvider<FluidVariant> provider;
private Level level;

public FluidHandler(BlockFace location) {
super(location);
provider = null;
this.provider = null;
this.level = null;
}

public void manageSource(Level world) {
provider = StorageProvider.createForFluids(world, location.getConnectedPos());
if (world != this.level) {
this.level = world;
this.provider = StorageProvider.createForFluids(world, location.getConnectedPos());
}
}

@Override
Expand Down

0 comments on commit 0ec6ecc

Please sign in to comment.