mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix trade index in VillagerInventory
This commit is contained in:
parent
ffca5eea00
commit
c080750a88
@ -23,7 +23,7 @@ public class VillagerInventory extends Inventory {
|
||||
final int length = oldTrades.length + 1;
|
||||
TradeListPacket.Trade[] trades = new TradeListPacket.Trade[length];
|
||||
System.arraycopy(oldTrades, 0, trades, 0, oldTrades.length);
|
||||
trades[length] = trade;
|
||||
trades[length - 1] = trade;
|
||||
this.tradeListPacket.trades = trades;
|
||||
update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user