Fixed inventory rollbacks not always returning correct item for placed blocks
This commit is contained in:
parent
c95bf3cc30
commit
4445c3c4a7
3 changed files with 16 additions and 2 deletions
|
|
@ -873,7 +873,8 @@ public class LookupCommand {
|
|||
int amount = Integer.parseInt(data[10]);
|
||||
String rbd = ((Integer.parseInt(data[8]) == 2 || Integer.parseInt(data[8]) == 3) ? Color.STRIKETHROUGH : "");
|
||||
String timeago = Util.getTimeSince(Integer.parseInt(time), unixtimestamp, true);
|
||||
String dname = Util.nameFilter(Util.getType(Integer.parseInt(dtype)).name().toLowerCase(Locale.ROOT), ddata);
|
||||
Material blockType = Util.itemFilter(Util.getType(Integer.parseInt(dtype)));
|
||||
String dname = Util.nameFilter(blockType.name().toLowerCase(Locale.ROOT), ddata);
|
||||
|
||||
String selector = Selector.FIRST;
|
||||
String tag = Color.WHITE + "-";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue