Skip to content

Commit e9bcec5

Browse files
committed
Replace javafx Pair by lang3 one.
1 parent 9f2d3fc commit e9bcec5

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/smart-invs.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/smart-invs_main.iml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/smart-invs_test.iml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repositories {
3434
}
3535
3636
dependencies {
37-
compile 'fr.minuskube.inv:smart-invs:1.1.1'
37+
compile 'fr.minuskube.inv:smart-invs:1.1.2'
3838
}
3939
```
4040

@@ -43,7 +43,7 @@ dependencies {
4343
<dependency>
4444
<groupId>fr.minuskube.inv</groupId>
4545
<artifactId>smart-invs</artifactId>
46-
<version>1.1.1</version>
46+
<version>1.1.2</version>
4747
</dependency>
4848
```
4949

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'fr.minuskube.inv'
2-
version '1.1.1'
2+
version '1.1.2'
33

44
apply plugin: 'java'
55
apply plugin: 'maven'
@@ -36,6 +36,7 @@ repositories {
3636

3737
dependencies {
3838
provided 'org.spigotmc:spigot-api:1.11.2-R0.1-SNAPSHOT'
39+
provided 'org.apache.commons:commons-lang3:3.5'
3940
}
4041

4142
jar { archiveName = 'SmartInvs-' + project.version + '.jar' }

src/main/java/fr/minuskube/inv/content/SlotIterator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import fr.minuskube.inv.ClickableItem;
44
import fr.minuskube.inv.SmartInventory;
5-
import javafx.util.Pair;
5+
import org.apache.commons.lang3.tuple.Pair;
66

77
import java.util.HashSet;
88
import java.util.Optional;
@@ -96,7 +96,7 @@ public SlotIterator previous() {
9696
break;
9797
}
9898
}
99-
while((row != 0 || column != 0) && blacklisted.contains(new Pair<>(row, column)));
99+
while((row != 0 || column != 0) && blacklisted.contains(Pair.of(row, column)));
100100

101101
return this;
102102
}
@@ -122,14 +122,14 @@ public SlotIterator next() {
122122
break;
123123
}
124124
}
125-
while(!ended() && blacklisted.contains(new Pair<>(row, column)));
125+
while(!ended() && blacklisted.contains(Pair.of(row, column)));
126126

127127
return this;
128128
}
129129

130130
@Override
131131
public SlotIterator blacklist(int row, int column) {
132-
this.blacklisted.add(new Pair<>(row, column));
132+
this.blacklisted.add(Pair.of(row, column));
133133
return this;
134134
}
135135

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: SmartInvs
2-
version: 1.1.1
2+
version: 1.1.2
33
description: Inventory API for your Bukkit Plugins.
44
author: MinusKube
55
website: https://github.com/MinusKube/SmartInvs

0 commit comments

Comments
 (0)