We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf0197 commit 13fbec7Copy full SHA for 13fbec7
1 file changed
src/main/java/me/hsgamer/bettergui/util/SlotUtil.java
@@ -33,7 +33,7 @@ public static Optional<Position> getPosition(Map<String, Object> map) {
33
Optional<Integer> x = Validate.getNumber(String.valueOf(map.get(POS_X))).map(BigDecimal::intValue);
34
Optional<Integer> y = Validate.getNumber(String.valueOf(map.get(POS_Y))).map(BigDecimal::intValue);
35
if (x.isPresent() && y.isPresent()) {
36
- return Optional.of(Position.of(x.get(), y.get()));
+ return Optional.of(Position.of(x.get() - 1, y.get() - 1));
37
}
38
39
return Optional.empty();
0 commit comments