TU19: merge Minecraft.World/Containers
keeping virtual destructors where possible
This commit is contained in:
1 parent
db0a6b2e6a
commit
f25cd66f4d
56 files changed
+1412
-373
No files matched your search
@@ -34,7 +34,7 @@ bool TrapMenu::stillValid(std::shared_ptr<Player> player) {
|
||||
std::shared_ptr<ItemInstance> TrapMenu::quickMoveStack(
|
||||
std::shared_ptr<Player> player, int slotIndex) {
|
||||
std::shared_ptr<ItemInstance> clicked = nullptr;
|
||||
Slot* slot = slots->at(slotIndex);
|
||||
Slot* slot = slots.at(slotIndex);
|
||||
if (slot != NULL && slot->hasItem()) {
|
||||
std::shared_ptr<ItemInstance> stack = slot->getItem();
|
||||
clicked = stack->copy();
|
||||
|
||||
Reference in new issue
Block a user