[SPIGOT-7879] Patch error in IDispenseBehavior Created: 24/Aug/24  Updated: 25/Dec/24  Resolved: 06/Oct/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: JustRed23 Assignee: Unassigned
Resolution: Done Votes: 0
Labels: Craftbukkit, patch-error
Environment:

Windows 11

IDE: Intellij IDEA

Source code source: BuildTools.bat

 


Version: This server is running CraftBukkit version 4294-Spigot-ca58122-7548afc (MC: 1.21.1) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

I noticed that a value was set but was never used at

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/net/minecraft/core/dispenser/IDispenseBehavior.patch#300

is this a patch error or is this intended?



 Comments   
Comment by md_5 [ 24/Aug/24 ]

I think it's OK because of the line above which would return

if (!event.getItem().equals(craftItem)) {
Generated at Thu Apr 03 16:14:33 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.