From 3990b196a22d7241f59448aeb7c36b9642127519 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 20 Aug 2023 10:42:17 +1000 Subject: [PATCH] Fix LiquidItem preview (again!) --- source/game/items/StarLiquidItem.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/game/items/StarLiquidItem.hpp b/source/game/items/StarLiquidItem.hpp index 7550226..03a73cd 100644 --- a/source/game/items/StarLiquidItem.hpp +++ b/source/game/items/StarLiquidItem.hpp @@ -5,12 +5,13 @@ #include "StarFireableItem.hpp" #include "StarBeamItem.hpp" #include "StarEntityRendering.hpp" +#include "StarPreviewTileTool.hpp" namespace Star { STAR_CLASS(LiquidItem); -class LiquidItem : public Item, public FireableItem, public BeamItem { +class LiquidItem : public Item, public FireableItem, public PreviewTileTool, public BeamItem { public: LiquidItem(Json const& config, String const& directory, Json const& settings); virtual ~LiquidItem() {} @@ -27,7 +28,7 @@ public: LiquidId liquidId() const; float liquidQuantity() const; - List preview(bool shifting) const; + List preview(bool shifting) const override; bool canPlace(bool shifting) const; bool canPlaceAtTile(Vec2I pos) const;