Skip to content

Commit

Permalink
feat: add addToBlockBasedItem annotation to InventoryComponent (#17)
Browse files Browse the repository at this point in the history
- when trying to nest items in another item (e.g. chest) before ever having placed the chest, it doesn't have an `InventoryComponent` because this annotation is missing
  • Loading branch information
jdrueckert authored May 29, 2020
1 parent f029f71 commit 4f74b39
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
import org.terasology.network.ReplicationCheck;
import org.terasology.reflection.metadata.FieldMetadata;
import org.terasology.world.block.ForceBlockActive;
import org.terasology.world.block.items.AddToBlockBasedItem;

import java.util.List;

/**
* Allows an entity to store items.
*
*/
@ForceBlockActive
@AddToBlockBasedItem
public final class InventoryComponent implements Component, ReplicationCheck {

public boolean privateToOwner = true;
Expand Down

0 comments on commit 4f74b39

Please sign in to comment.