mirror of
https://github.com/songoda/EpicBuckets.git
synced 2025-01-03 14:18:24 +01:00
Fixed not correctly removing genbuckets from inventory
This commit is contained in:
parent
46b7903cd5
commit
99340859ca
4
pom.xml
4
pom.xml
@ -2,7 +2,7 @@
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>EpicBuckets</artifactId>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>1.4.1</version>
|
||||
<version>1.4.2</version>
|
||||
<build>
|
||||
<defaultGoal>clean package</defaultGoal>
|
||||
<plugins>
|
||||
@ -122,7 +122,7 @@
|
||||
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>33_aikar</id>
|
||||
<id>3_aikar</id>
|
||||
<url>https://repo.aikar.co/content/groups/aikar/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
|
@ -89,7 +89,7 @@ public class GenbucketPlaceListener implements Listener {
|
||||
if (e.getItem().getAmount() > 1) {
|
||||
e.getItem().setAmount(e.getItem().getAmount() - 1);
|
||||
} else {
|
||||
e.getPlayer().getInventory().remove(e.getItem());
|
||||
e.getPlayer().getInventory().setItem(e.getPlayer().getInventory().getHeldItemSlot(), null);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ public class Shop {
|
||||
public SubShop getSubShop(XMaterial mat) {
|
||||
for (SubShop subShop : subShops.values()) {
|
||||
if (subShop.getGenItem().getType() == mat.parseMaterial() &&
|
||||
subShop.getGenItem().getTypeId() == mat.parseItem().getTypeId()) {
|
||||
subShop.getGenItem().getDurability() == mat.parseItem().getDurability()) {
|
||||
return subShop;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: EpicBuckets
|
||||
version: 1.4.1
|
||||
version: 1.4.2
|
||||
description: Generate walls fast and efficient with beautiful guis!
|
||||
author: Songoda
|
||||
main: com.songoda.epicbuckets.EpicBuckets
|
||||
|
Loading…
Reference in New Issue
Block a user