Skip to content

Commit

Permalink
removed default inventory spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend committed Dec 16, 2018
1 parent 73bb860 commit 0b78875
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 0b78875

Please sign in to comment.