mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-07 02:33:34 +08:00
Add iterable payItems methods
Shame they could never be fully generic, but oh well
This commit is contained in:
@@ -71,7 +71,7 @@ public class FurnitureManager extends BasePlayerManager {
|
||||
}
|
||||
|
||||
// pay items first
|
||||
if (!player.getInventory().payItems(makeData.getMaterialItems().toArray(new ItemParamData[0]))) {
|
||||
if (!player.getInventory().payItems(makeData.getMaterialItems())) {
|
||||
player.getSession().send(new PacketFurnitureMakeStartRsp(Retcode.RET_HOME_FURNITURE_COUNT_NOT_ENOUGH_VALUE, null));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user