mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix
This commit is contained in:
parent
d8b3920d65
commit
d9dc974685
2 changed files with 8 additions and 2 deletions
|
|
@ -117,7 +117,8 @@ SlotView::SlotView(
|
|||
|
||||
void SlotView::draw(const GfxContext* pctx, Assets* assets) {
|
||||
if (bound == nullptr)
|
||||
throw std::runtime_error("unbound slot");
|
||||
return;
|
||||
|
||||
ItemStack& stack = *bound;
|
||||
|
||||
glm::vec2 coord = calcCoord();
|
||||
|
|
@ -206,7 +207,7 @@ bool SlotView::isHighlighted() const {
|
|||
|
||||
void SlotView::clicked(gui::GUI* gui, int button) {
|
||||
if (bound == nullptr)
|
||||
throw std::runtime_error("unbound slot");
|
||||
return;
|
||||
|
||||
ItemStack& grabbed = interaction->getGrabbedItem();
|
||||
ItemStack& stack = *bound;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue