Skip to content

Commit

Permalink
Merge pull request #44 from pollend/feature_removed_inventory
Browse files Browse the repository at this point in the history
removed default inventory spawn
  • Loading branch information
pollend authored Dec 20, 2018
2 parents 73bb860 + 0b78875 commit 961574d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/org/terasology/minecarts/action/MinecartAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,12 @@ public class MinecartAction extends BaseComponentSystem {
@In
private BlockManager blockManager;


private final Logger logger = LoggerFactory.getLogger(MinecartAction.class);

@Override
public void initialise() {
}


@ReceiveEvent
public void onPlayerSpawn(OnPlayerSpawnedEvent event, EntityRef player, InventoryComponent inventory) {
BlockItemFactory blockFactory = new BlockItemFactory(entityManager);
inventoryManager.giveItem(player, player, entityManager.create("Rails:minecart"));
inventoryManager.giveItem(player, player, entityManager.create("Rails:wrench"));
inventoryManager.giveItem(player, player, blockFactory.newInstance(blockManager.getBlockFamily("Rails:rails"), 99));
}

@ReceiveEvent(components = {CartDefinitionComponent.class, ItemComponent.class})
public void onPlaceFunctional(ActivateEvent event, EntityRef item) {

Expand Down

0 comments on commit 961574d

Please sign in to comment.