Skip to content

Commit

Permalink
fixed copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
nhnb committed Sep 25, 2023
1 parent a521ed8 commit 2e18d09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/games/stendhal/server/entity/item/ExaminableItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> attributes) {
super(name, clazz, subclass, attributes);
put("menu", "Look closely|use");
}


@Override
public boolean onUsed(RPEntity user) {

Expand Down

0 comments on commit 2e18d09

Please sign in to comment.