mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-14 03:22:10 +00:00
refactor: type the IGameServices payload as a variant instead of void*
This commit is contained in:
@@ -115,9 +115,11 @@ void UIScene_DebugCreateSchematic::handlePress(F64 controlId, F64 childId) {
|
||||
else if (m_data->endZ < 0 && m_data->endZ % 2 == 0)
|
||||
m_data->endZ += 1;
|
||||
|
||||
std::unique_ptr<minecraft::XuiActionOwnedPayload> payload(m_data);
|
||||
m_data = nullptr; // ownership transferred to the action
|
||||
app.SetXuiServerAction(PlatformProfile.GetPrimaryPad(),
|
||||
eXuiServerAction_ExportSchematic,
|
||||
(void*)m_data);
|
||||
std::move(payload));
|
||||
|
||||
navigateBack();
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user