add first patch
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
console.info("[SOCIETY] compactingDrawerExploit.js loaded");
|
||||
|
||||
BlockEvents.rightClicked(
|
||||
[
|
||||
"functionalstorage:compacting_drawer",
|
||||
"functionalstorage:simple_compacting_drawer",
|
||||
"functionalstorage:compacting_framed_drawer",
|
||||
"functionalstorage:framed_simple_compacting_drawer",
|
||||
],
|
||||
(e) => {
|
||||
const { item, player } = e;
|
||||
if (item.nbt && item.nbt.quality_food) {
|
||||
player.tell(Text.translatable("society.compacting_drawer.quality_item").red());
|
||||
e.cancel();
|
||||
}
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user