[SPIGOT-572] Ambiguous Method Call getTargetBlock Created: 15/Feb/15  Updated: 15/Feb/15  Resolved: 15/Feb/15

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

Type: Bug
Reporter: EDawg878 Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: Craftbukkit


 Description   

Commit 9648edfa613 "Add alternatives for deprecated methods" added the method "public Block getTargetBlock(Set<Material> transparent, int maxDistance)". Before this commit, it was common to use getTargetBlock(null, 5) to get the block that a player is looking at. Now that code won't compile because of an ambiguous method call.



 Comments   
Comment by Jonas Konrad [ 15/Feb/15 ]

getTargetBlock((Set) null, 5); will work.

Generated at Sat Apr 05 06:16:38 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.