mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-24 04:38:33 +01:00
Compare commits
3 commits
e9b38d0df5
...
d8122ae7e2
Author | SHA1 | Date | |
---|---|---|---|
d8122ae7e2 | |||
ffede60fee | |||
e6e00191f2 |
3 changed files with 10 additions and 1 deletions
|
@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
|||
apply plugin: 'eclipse'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
version = '1.9.3'
|
||||
version = '1.9.4'
|
||||
group = 'de.ellpeck.prettypipes' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = 'PrettyPipes'
|
||||
|
||||
|
|
|
@ -253,6 +253,10 @@ public class PipeNetwork implements ICapabilitySerializable<CompoundNBT>, GraphL
|
|||
return tile;
|
||||
}
|
||||
|
||||
public void uncachePipe(BlockPos pos) {
|
||||
this.tileCache.remove(pos);
|
||||
}
|
||||
|
||||
public List<Pair<BlockPos, ItemStack>> getCurrentlyCrafting(BlockPos node, ItemEquality... equalityTypes) {
|
||||
this.startProfile("get_currently_crafting");
|
||||
List<Pair<BlockPos, ItemStack>> items = new ArrayList<>();
|
||||
|
|
|
@ -89,6 +89,11 @@ public class PipeTileEntity extends TileEntity implements INamedContainerProvide
|
|||
super(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChunkUnloaded() {
|
||||
PipeNetwork.get(this.world).uncachePipe(this.pos);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompoundNBT write(CompoundNBT compound) {
|
||||
compound.put("modules", this.modules.serializeNBT());
|
||||
|
|
Loading…
Reference in a new issue