From 201f8f7ae38ae7f8e4020fa2fe2399a28d215ea3 Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Tue, 1 Feb 2022 18:39:59 +0100 Subject: [PATCH] Added generics --- .../distributedrebirth/demo4d/screen/BasePartRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java b/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java index 45a1e194..99c702c7 100644 --- a/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java +++ b/core/src/love/distributedrebirth/demo4d/screen/BasePartRenderer.java @@ -48,7 +48,7 @@ public class BasePartRenderer extends ImGuiRendererMain { ImGui.combo("Type", selectedBasePart, bases.toArray(items)); String selectedItem = items[selectedBasePart.get()]; Integer baseNumber = Integer.valueOf(selectedItem); - BassBone[] baseParts = BasePartFactory.buildBassBonesByBase(baseNumber); + BassBone[] baseParts = BasePartFactory.buildBassBonesByBase(baseNumber); int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; ImGui.beginTable("base-part", 10, flags); @@ -64,7 +64,7 @@ public class BasePartRenderer extends ImGuiRendererMain { ImGui.tableSetupColumn("Alt4"); ImGui.tableHeadersRow(); - for (BassBone part:baseParts) { + for (BassBone part:baseParts) { ImGui.tableNextRow(); ImGui.tableNextColumn(); ImGui.text(part.name());