Hostile Neural Networks

Hostile Neural Networks

7M Downloads

If there's only one loot option, can we automatically generate loot?

hedgepiggy opened this issue ยท 0 comments

commented

Basically, if there's only one possible loot output could the loot be set to automatically generate? Maybe there is a better way to do this for placing large numbers of blocks.

something like

    public void setSelection(DynamicHolder<DataModel> model, int selection) {
        if(model.get().fabDrops().size() == 1){
            this.savedSelections.put(model,0);
        }
        if (selection == -1) this.savedSelections.removeInt(model);
        else this.savedSelections.put(model, Mth.clamp(selection, 0, model.get().fabDrops().size() - 1));
        VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this);
        this.setChanged();
    }

in

public void setSelection(DynamicHolder<DataModel> model, int selection) {

thanks