diff --git a/src/main/java/org/terasology/minecarts/action/MinecartAction.java b/src/main/java/org/terasology/minecarts/action/MinecartAction.java index 443b42a..7237331 100644 --- a/src/main/java/org/terasology/minecarts/action/MinecartAction.java +++ b/src/main/java/org/terasology/minecarts/action/MinecartAction.java @@ -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) {