Save more lines & fix patch order
This commit is contained in:
22
patches/server/0006-Never-drop-items-on-command-give.patch
Normal file
22
patches/server/0006-Never-drop-items-on-command-give.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From e8f51063170fc9aaea039471bfdbe35002ebc176 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?=
|
||||
<tsao-chi@the-lingo.org>
|
||||
Date: Thu, 2 Apr 2020 11:35:19 +0800
|
||||
Subject: [PATCH] Never drop items on command "/give"
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/CommandGive.java b/src/main/java/net/minecraft/server/CommandGive.java
|
||||
index 81b26bb4d..1f3097c94 100644
|
||||
--- a/src/main/java/net/minecraft/server/CommandGive.java
|
||||
+++ b/src/main/java/net/minecraft/server/CommandGive.java
|
||||
@@ -36,6 +36,7 @@ public class CommandGive {
|
||||
boolean flag = entityplayer.inventory.pickup(itemstack);
|
||||
EntityItem entityitem;
|
||||
|
||||
+ if (true) continue; // Akarin - never drop items on command "/give"
|
||||
if (flag && itemstack.isEmpty()) {
|
||||
itemstack.setCount(1);
|
||||
entityitem = entityplayer.drop(itemstack, false);
|
||||
--
|
||||
2.25.1.windows.1
|
||||
|
||||
Reference in New Issue
Block a user