mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-11 17:21:55 +00:00
TU19: merge Minecraft.World/Containers
keeping virtual destructors where possible
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
#include "../Platform/stdafx.h"
|
||||
#include "RepairMenu.h"
|
||||
#include "AnvilMenu.h"
|
||||
#include "RepairContainer.h"
|
||||
|
||||
RepairContainer::RepairContainer(RepairMenu* menu, int name, int size)
|
||||
: SimpleContainer(name, size) {
|
||||
RepairContainer::RepairContainer(AnvilMenu* menu, int name, bool customName,
|
||||
int size)
|
||||
: SimpleContainer(name, L"", customName, size) {
|
||||
m_menu = menu;
|
||||
}
|
||||
|
||||
void RepairContainer::setChanged() {
|
||||
SimpleContainer::setChanged();
|
||||
m_menu->slotsChanged(shared_from_this());
|
||||
}
|
||||
|
||||
bool RepairContainer::canPlaceItem(int slot,
|
||||
std::shared_ptr<ItemInstance> item) {
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user