Commits

fonkfader  committed b4177cd

- fix bug in inventory

  • Participants
  • Parent commits 992da4c

Comments (0)

Files changed (12)

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$1.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$2.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$3.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$4.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$5.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$6.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$7.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener$8.class

Binary file modified.

File bin/me/fonkfader/EmeraldEconLink/ContenerListener.class

Binary file modified.

File bin/plugin.yml

 main: me.fonkfader.EmeraldEconLink.EmeraldEconLink
 name: EmeraldEconLink
-version: 2.1.2
+version: 2.1.4
 author: Fonkfader
 description: use items as currency.
 softdepend : [Vault]

File src/me/fonkfader/EmeraldEconLink/ContenerListener.java

 										p.sendMessage(Utils.messageAdd(p,
 												amountInSlot));
 									}
-								} else if ((Utils
-										.howManyItemsCanHold(p, itemId) < getAmount)
-										&& (Utils
-												.howManyItemsCanHold(p, itemId) > 0)) {
+								} else if ((Utils.howManyItemsCanHold(p, itemId) < getAmount)
+										&& (Utils.howManyItemsCanHold(p, itemId) > 0)) {
 
-									EmeraldEconLink.econ
-											.depositPlayer(
-													name,
-													Utils.howManyItemsCanHold(
-															p, itemId) * cost);
+									EmeraldEconLink.econ.depositPlayer(name,
+													Utils.howManyItemsCanHold(p, itemId) * cost);
 
 									if (!Configuration.DisableChatMessage) {
 
 
 							} else {
 
-								int slotFreeSpace = Utils
-										.howManyItemsHolderCanHold(e, itemId)
+								int slotFreeSpace = e.getCurrentItem().getMaxStackSize()
 										- (e.getCurrentItem().getAmount());
 
 								if (slotFreeSpace > e.getCursor().getAmount()) {

File src/plugin.yml

 main: me.fonkfader.EmeraldEconLink.EmeraldEconLink
 name: EmeraldEconLink
-version: 2.1.2
+version: 2.1.4
 author: Fonkfader
 description: use items as currency.
 softdepend : [Vault]