mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-18 23:32:08 -08:00
launch pad fix
This commit is contained in:
parent
4b824f7a4c
commit
669ce6dfbb
2 changed files with 15 additions and 2 deletions
|
|
@ -77,8 +77,9 @@ public class LaunchPad extends StorageBlock{
|
|||
for(Item item : Vars.content.items()){
|
||||
Events.fire(Trigger.itemLaunch);
|
||||
Effects.effect(Fx.padlaunch, tile);
|
||||
data.addItem(item, entity.items.get(item));
|
||||
entity.items.set(item, 0);
|
||||
int used = Math.min(entity.items.get(item), itemCapacity);
|
||||
data.addItem(item, used);
|
||||
entity.items.remove(item, used);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,18 @@ public class SWorkshop implements SteamUGCCallback{
|
|||
|
||||
private Map lastMap;
|
||||
|
||||
public SWorkshop(){
|
||||
int items = ugc.getNumSubscribedItems();
|
||||
SteamPublishedFileID[] ids = new SteamPublishedFileID[items];
|
||||
ugc.getSubscribedItems(ids);
|
||||
for(int i = 0; i < items; i++){
|
||||
SteamPublishedFileID id = ids[i];
|
||||
ItemInstallInfo info = new ItemInstallInfo();
|
||||
ugc.getItemInstallInfo(id, info);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void publishMap(Map map){
|
||||
FloatingDialog dialog = new FloatingDialog("$confirm");
|
||||
dialog.setFillParent(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue