mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 13:04:19 +01:00
Cart Contraptions now keep their item name
This commit is contained in:
parent
da5ae87bec
commit
f85c47e9b1
@ -209,7 +209,7 @@ public class MinecartContraptionItem extends Item {
|
|||||||
OrientedContraptionEntity contraption = (OrientedContraptionEntity) passengers.get(0);
|
OrientedContraptionEntity contraption = (OrientedContraptionEntity) passengers.get(0);
|
||||||
|
|
||||||
if (!event.getWorld().isRemote) {
|
if (!event.getWorld().isRemote) {
|
||||||
player.inventory.placeItemBackInInventory(event.getWorld(), create(type, contraption));
|
player.inventory.placeItemBackInInventory(event.getWorld(), create(type, contraption).setDisplayName(entity.getCustomName()));
|
||||||
contraption.remove();
|
contraption.remove();
|
||||||
entity.remove();
|
entity.remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user