mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-29 10:05:43 +00:00
TU19: merge Minecraft.World/Blocks
This commit is contained in:
18
Minecraft.World/Blocks/TileEntities/DropperTileEntity.cpp
Normal file
18
Minecraft.World/Blocks/TileEntities/DropperTileEntity.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "../../Platform/stdafx.h"
|
||||
|
||||
#include "DropperTileEntity.h"
|
||||
|
||||
std::wstring DropperTileEntity::getName() {
|
||||
return hasCustomName() ? name : app.GetString(IDS_CONTAINER_DROPPER);
|
||||
}
|
||||
|
||||
// 4J Added
|
||||
std::shared_ptr<TileEntity> DropperTileEntity::clone() {
|
||||
std::shared_ptr<DropperTileEntity> result =
|
||||
std::shared_ptr<DropperTileEntity>(new DropperTileEntity());
|
||||
TileEntity::clone(result);
|
||||
|
||||
result->name = name;
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user