Skip to content

Commit

Permalink
Replace javafx Pair by lang3 one.
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusKube committed Sep 30, 2017
1 parent 9f2d3fc commit e9bcec5
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules/smart-invs.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/modules/smart-invs_main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/modules/smart-invs_test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repositories {
}
dependencies {
compile 'fr.minuskube.inv:smart-invs:1.1.1'
compile 'fr.minuskube.inv:smart-invs:1.1.2'
}
```

Expand All @@ -43,7 +43,7 @@ dependencies {
<dependency>
<groupId>fr.minuskube.inv</groupId>
<artifactId>smart-invs</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>
```

Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'fr.minuskube.inv'
version '1.1.1'
version '1.1.2'

apply plugin: 'java'
apply plugin: 'maven'
Expand Down Expand Up @@ -36,6 +36,7 @@ repositories {

dependencies {
provided 'org.spigotmc:spigot-api:1.11.2-R0.1-SNAPSHOT'
provided 'org.apache.commons:commons-lang3:3.5'
}

jar { archiveName = 'SmartInvs-' + project.version + '.jar' }
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/fr/minuskube/inv/content/SlotIterator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import fr.minuskube.inv.ClickableItem;
import fr.minuskube.inv.SmartInventory;
import javafx.util.Pair;
import org.apache.commons.lang3.tuple.Pair;

import java.util.HashSet;
import java.util.Optional;
Expand Down Expand Up @@ -96,7 +96,7 @@ public SlotIterator previous() {
break;
}
}
while((row != 0 || column != 0) && blacklisted.contains(new Pair<>(row, column)));
while((row != 0 || column != 0) && blacklisted.contains(Pair.of(row, column)));

return this;
}
Expand All @@ -122,14 +122,14 @@ public SlotIterator next() {
break;
}
}
while(!ended() && blacklisted.contains(new Pair<>(row, column)));
while(!ended() && blacklisted.contains(Pair.of(row, column)));

return this;
}

@Override
public SlotIterator blacklist(int row, int column) {
this.blacklisted.add(new Pair<>(row, column));
this.blacklisted.add(Pair.of(row, column));
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SmartInvs
version: 1.1.1
version: 1.1.2
description: Inventory API for your Bukkit Plugins.
author: MinusKube
website: https://github.com/MinusKube/SmartInvs
Expand Down

0 comments on commit e9bcec5

Please sign in to comment.