Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.95 RC15] Crash when displaying loot caused by unneeded vanilla class cast  (Read 784 times)


  • Commander
  • ***
  • Posts: 182
  • Discord: Wisp#0302
    • View Profile


A line in BlueprintIntel downcasts, causing a crash if a mod is using a different subclass of InteractionDialogPlugin than RuleBasedInteractionDialogPluginImpl.
It does not need to make that cast, as getMemoryMap() is a method of the InteractionDialogPlugin interface.

Where: as of 0.9.5 RC15.

    public void reportAboutToShowLootToPlayer(CargoAPI loot, InteractionDialogAPI dialog) {
        Iterator var4 = loot.getStacksCopy().iterator();

        while(var4.hasNext()) {
            CargoStackAPI stack = (CargoStackAPI);
            if (this.item.equals(stack.getData())) {
  --------->    this.setCurrentStage(BlueprintIntel.Stage.COMPLETED, dialog, ((RuleBasedInteractionDialogPluginImpl)dialog.getPlugin()).getMemoryMap());



This crashes if a mod uses a subclass of InteractionDialogAPI, uses it to call visualPanel.showLoot, AND the player happens to have a hub blueprint mission with the blueprint that is being shown.
The crash is reproducing (unreliably, of course) in Persean Chronicles. Dark.Revenant has mentioned that he ran into this bug as well.


  • Administrator
  • Admiral
  • *****
  • Posts: 20030
    • View Profile

Thank you - removed the cast.