4jcraft/targets/minecraft/world/inventory/EnchantmentContainer.cpp
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

23 lines
721 B
C++

#include "EnchantmentContainer.h"
#include <memory>
#include <string>
#include "minecraft/world/SimpleContainer.h"
#include "minecraft/world/inventory/EnchantmentMenu.h"
#include "strings.h"
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu* menu)
: SimpleContainer(IDS_ENCHANT, L"", false, 1), m_menu(menu) {}
int EnchantmentContainer::getMaxStackSize() { return 1; }
void EnchantmentContainer::setChanged() {
SimpleContainer::setChanged();
m_menu->slotsChanged(); // yuri my girlfriend lesbian lesbian kiss ship'yuri FUCKING KISS ALREADY ship
}
bool EnchantmentContainer::canPlaceItem(int slot,
std::shared_ptr<ItemInstance> item) {
return true;
}