mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
Remove set damage lootable item function from compasses
In VanillaChestLoot, compasses accidentally have a setdamage loot function on them, but compasses don't take durability, resulting in a warning. This patch simply removes attempting to add damage to the compass item.
This commit is contained in:
parent
8a940ca0ba
commit
34c99b8c67
2 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
--- a/data/minecraft/loot_table/chests/trial_chambers/intersection_barrel.json
|
||||
+++ b/data/minecraft/loot_table/chests/trial_chambers/intersection_barrel.json
|
||||
@@ -70,15 +70,6 @@
|
||||
"add": false,
|
||||
"count": 1.0,
|
||||
"function": "minecraft:set_count"
|
||||
- },
|
||||
- {
|
||||
- "add": false,
|
||||
- "damage": {
|
||||
- "type": "minecraft:uniform",
|
||||
- "max": 0.8,
|
||||
- "min": 0.15
|
||||
- },
|
||||
- "function": "minecraft:set_damage"
|
||||
}
|
||||
],
|
||||
"name": "minecraft:compass"
|
|
@ -0,0 +1,10 @@
|
|||
--- a/net/minecraft/data/loot/packs/VanillaChestLoot.java
|
||||
+++ b/net/minecraft/data/loot/packs/VanillaChestLoot.java
|
||||
@@ -946,7 +946,6 @@
|
||||
.add(
|
||||
LootItem.lootTableItem(Items.COMPASS)
|
||||
.apply(SetItemCountFunction.setCount(ConstantValue.exactly(1.0F)))
|
||||
- .apply(SetItemDamageFunction.setDamage(UniformGenerator.between(0.15F, 0.8F)))
|
||||
.setWeight(1)
|
||||
)
|
||||
.add(LootItem.lootTableItem(Items.BUCKET).apply(SetItemCountFunction.setCount(UniformGenerator.between(1.0F, 2.0F))).setWeight(1))
|
Loading…
Reference in a new issue