mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-25 13:08:34 +01:00
Compare commits
2 commits
cb98ef5be1
...
0eaaa71092
Author | SHA1 | Date | |
---|---|---|---|
0eaaa71092 | |||
f861c0bbb5 |
3 changed files with 4 additions and 3 deletions
|
@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
|||
apply plugin: 'eclipse'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
version = '1.9.7'
|
||||
version = '1.9.8'
|
||||
group = 'de.ellpeck.prettypipes' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = 'PrettyPipes'
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ public class PacketRequest {
|
|||
public PacketRequest(BlockPos pos, ItemStack stack, int amount) {
|
||||
this.pos = pos;
|
||||
this.stack = stack;
|
||||
this.nbtHash = stack.getTag().hashCode();
|
||||
if (stack.hasTag())
|
||||
this.nbtHash = stack.getTag().hashCode();
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ public class ItemTerminalTileEntity extends TileEntity implements INamedContaine
|
|||
stack = this.networkItems.values().stream()
|
||||
.map(NetworkItem::asStack)
|
||||
// don't compare with nbt equality here or the whole hashing thing is pointless
|
||||
.filter(s -> ItemEquality.compareItems(s, filter) && s.getTag().hashCode() == nbtHash)
|
||||
.filter(s -> ItemEquality.compareItems(s, filter) && s.hasTag() && s.getTag().hashCode() == nbtHash)
|
||||
.findFirst().orElse(filter);
|
||||
}
|
||||
int requested = this.requestItemImpl(stack, onItemUnavailable(player, false));
|
||||
|
|
Loading…
Reference in a new issue