tooltips: ItemEvents.tooltip -> ItemEvents.modifyTooltips, 0.22.1 -> 0.22.2
KubeJS 2101.x has ModifyItemTooltipsKubeEvent (the modify-tooltips API); the older 'tooltip' event name doesn't exist in this version.
This commit is contained in:
@@ -17,7 +17,7 @@ const CRIBS = {
|
|||||||
'numismatics:sun': [ '= 4096 Spurs (8 Crowns)', 'Bank Teller block converts.' ],
|
'numismatics:sun': [ '= 4096 Spurs (8 Crowns)', 'Bank Teller block converts.' ],
|
||||||
};
|
};
|
||||||
|
|
||||||
ItemEvents.tooltip(event => {
|
ItemEvents.modifyTooltips(event => {
|
||||||
for (const id in CRIBS) {
|
for (const id in CRIBS) {
|
||||||
event.add(id, CRIBS[id].map(line => Text.aqua(line)));
|
event.add(id, CRIBS[id].map(line => Text.aqua(line)));
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing",
|
"$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing",
|
||||||
"name": "Brass and Sigil",
|
"name": "Brass and Sigil",
|
||||||
"version": "0.22.1",
|
"version": "0.22.2",
|
||||||
"minecraft": "1.21.1",
|
"minecraft": "1.21.1",
|
||||||
"loader": {
|
"loader": {
|
||||||
"type": "neoforge",
|
"type": "neoforge",
|
||||||
|
|||||||
Reference in New Issue
Block a user