From 2e18d0984f798fa343f825f5632956b1e2ec6ea6 Mon Sep 17 00:00:00 2001 From: Hendrik Brummermann Date: Mon, 25 Sep 2023 20:12:04 +0200 Subject: [PATCH] fixed copy constructor --- src/games/stendhal/server/entity/item/ExaminableItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/games/stendhal/server/entity/item/ExaminableItem.java b/src/games/stendhal/server/entity/item/ExaminableItem.java index a7bec784a40..a7b859c2c4c 100644 --- a/src/games/stendhal/server/entity/item/ExaminableItem.java +++ b/src/games/stendhal/server/entity/item/ExaminableItem.java @@ -19,15 +19,17 @@ public class ExaminableItem extends StackableItem { - public ExaminableItem(StackableItem item) { + public ExaminableItem(ExaminableItem item) { super(item); put("menu", "Look closely|use"); } public ExaminableItem(String name, String clazz, String subclass, Map attributes) { super(name, clazz, subclass, attributes); + put("menu", "Look closely|use"); } + @Override public boolean onUsed(RPEntity user) {