[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. |