From 0b7887544b6396edf71f33898a6078ba43c49feb Mon Sep 17 00:00:00 2001 From: Michael Pollind Date: Sat, 15 Dec 2018 22:22:48 -0800 Subject: [PATCH] removed default inventory spawn --- .../terasology/minecarts/action/MinecartAction.java | 10 ---------- 1 file changed, 10 deletions(-) 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) {