mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 00:47:42 +01:00
Fix better mending to use damage percent instead of damage amount
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 65faec0d7231fcc6398d09453e4ce4cf4632014b Mon Sep 17 00:00:00 2001
|
||||
From 94c7706024d3ed24336b9985ceedcf34b8a96620 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Thu, 25 Jul 2019 18:07:37 -0500
|
||||
Subject: [PATCH] Implement elytra settings
|
||||
@@ -64,10 +64,10 @@ index 9e86ef4c..832cea63 100644
|
||||
itemstack.subtract(1);
|
||||
} else ((EntityPlayer) entityhuman).getBukkitEntity().updateInventory();
|
||||
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
index 0e164840..d9b63547 100644
|
||||
index 41e88916..43e89b99 100644
|
||||
--- a/src/main/java/net/minecraft/server/ItemStack.java
|
||||
+++ b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
@@ -393,7 +393,7 @@ public final class ItemStack {
|
||||
@@ -402,7 +402,7 @@ public final class ItemStack {
|
||||
int j;
|
||||
|
||||
if (i > 0) {
|
||||
@@ -76,7 +76,7 @@ index 0e164840..d9b63547 100644
|
||||
int k = 0;
|
||||
|
||||
for (int l = 0; j > 0 && l < i; ++l) {
|
||||
@@ -439,6 +439,12 @@ public final class ItemStack {
|
||||
@@ -448,6 +448,12 @@ public final class ItemStack {
|
||||
if (this.isDamaged(i, t0.getRandom(), t0 instanceof EntityPlayer ? (EntityPlayer) t0 : null)) {
|
||||
consumer.accept(t0);
|
||||
Item item = this.getItem();
|
||||
|
||||
Reference in New Issue
Block a user