Remove broken tooltips, I give up
This commit is contained in:
parent
24bcd274eb
commit
6f48dd1a24
1 changed files with 0 additions and 33 deletions
|
|
@ -1,12 +1,4 @@
|
|||
onEvent('item.tooltip', event => {
|
||||
const optionalRemove = (t, f) => {
|
||||
let idx = 0;
|
||||
for (const x of t) {
|
||||
if (`${x}`.includes(f)) t.remove(idx);
|
||||
idx++;
|
||||
}
|
||||
};
|
||||
|
||||
event.add(
|
||||
[
|
||||
'refinedstorage:controller',
|
||||
|
|
@ -81,29 +73,4 @@ onEvent('item.tooltip', event => {
|
|||
text.add(Text.of('§5All fall damage is negated and applied to boots instead§r'));
|
||||
}
|
||||
});
|
||||
|
||||
event.addAdvanced('minecraft:stick', (item, advanced, text) => {
|
||||
try {
|
||||
optionalRemove(text, 'message.supplementaries.placeable');
|
||||
} catch (ex) {
|
||||
console.log(ex);
|
||||
}
|
||||
});
|
||||
|
||||
event.addAdvanced('minecraft:blaze_rod', (item, advanced, text) => {
|
||||
try {
|
||||
optionalRemove(text, 'message.supplementaries.placeable');
|
||||
} catch (ex) {
|
||||
console.log(ex);
|
||||
}
|
||||
});
|
||||
|
||||
event.addAdvanced('immersiveengineering:graphite_electrode', (item, advanced, text) => {
|
||||
try {
|
||||
optionalRemove(text, 'desc.immersiveengineering.info.electrodeIntegrity');
|
||||
optionalRemove(text, 'item.unbreakable');
|
||||
} catch (ex) {
|
||||
console.log(ex);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue