Skip to content

Kiln/Furnace remove wood/ore from storage but won't activate #141

Description

@BQubed

If I have wood/ore in the container, the kiln/furnace will pull the wood/ore but nothing else happens and the following errors are logged:

[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
CraftFromContainers.BepInExPlugin+Smelter_OnAddOre_Patch.Prefix (Smelter __instance, Humanoid user, ItemDrop+ItemData item, ZNetView ___m_nview) (at <ce2fc4f8d1094eafa97cfb6792e7828f>:0)
(wrapper dynamic-method) Smelter.DMD<Smelter::OnAddOre>(Smelter,Switch,Humanoid,ItemDrop/ItemData)
Switch.Interact (Humanoid character, System.Boolean hold, System.Boolean alt) (at <90663da6b3074a37975cc8a72a434494>:0)
Player.Interact (UnityEngine.GameObject go, System.Boolean hold, System.Boolean alt) (at <90663da6b3074a37975cc8a72a434494>:0)
(wrapper dynamic-method) Player.DMD<Player::Update>(Player)

[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
CraftFromContainers.BepInExPlugin+Smelter_OnAddOre_Patch.Prefix (Smelter __instance, Humanoid user, ItemDrop+ItemData item, ZNetView ___m_nview) (at <ce2fc4f8d1094eafa97cfb6792e7828f>:0)
(wrapper dynamic-method) Smelter.DMD<Smelter::OnAddOre>(Smelter,Switch,Humanoid,ItemDrop/ItemData)
Switch.Interact (Humanoid character, System.Boolean hold, System.Boolean alt) (at <90663da6b3074a37975cc8a72a434494>:0)
Player.Interact (UnityEngine.GameObject go, System.Boolean hold, System.Boolean alt) (at <90663da6b3074a37975cc8a72a434494>:0)
(wrapper dynamic-method) Player.DMD<Player::Update>(Player)

The following are the only config settings I have that are not default:

## If true, will pull fuel from containers.
# Setting type: Boolean
# Default value: false
PullFuel = true

## If true, will pull ore from containers.
# Setting type: Boolean
# Default value: false
PullOre = true

## If true, will pull cooking ingredients from containers.
# Setting type: Boolean
# Default value: false
PullCooking = true

## The maximum range from which to pull items from
# Setting type: Single
# Default value: 10
ContainerRange = 30

The furnace is still able to pull coal from storage and successfully store it. The wood and ore is lost however.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions