SpoutDev/Spout — Issue #751: setAmount not working correctly in InventoryEvent
Author: Olloth
Created: 2011-10-18 06:16:36+00:00
State: open
Labels: Bug Report, Need Testing

[quote="Ziden, post: 748259"]Heya, im not sure but i belive something is wrong in the API. It was right till 1.8

Lets say im making a sugarcane transform into a sugar, in a crafting table.

@onInventoryCraft

[CODE] event.getPlayer().sendMessage("->"+event.getCursor().getAmount());
event.getCursor().setAmount(event.getCursor().getAmount()-1);
event.getPlayer().sendMessage("->"+event.getCursor().getAmount());[/CODE]

This shows me ammount has subtracted, but it doesnt in the item stack the player is holding (draggin).

Thanx alot for your attention.