Fix ItemStackBuilder#canBreak
This commit is contained in:
parent
500163d8f4
commit
dbdf1eeb7c
@ -352,7 +352,7 @@ public class ItemStackBuilder {
|
|||||||
public ItemStackBuilder canBreak(Collection<NamespacedKey> canBreak) {
|
public ItemStackBuilder canBreak(Collection<NamespacedKey> canBreak) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Collection<com.destroystokyo.paper.Namespaced> nsCanBreak = (Collection<com.destroystokyo.paper.Namespaced>) (Collection<?>) canBreak;
|
Collection<com.destroystokyo.paper.Namespaced> nsCanBreak = (Collection<com.destroystokyo.paper.Namespaced>) (Collection<?>) canBreak;
|
||||||
return meta(m -> m.setPlaceableKeys(nsCanBreak));
|
return meta(m -> m.setDestroyableKeys(nsCanBreak));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (canBreak == null)
|
if (canBreak == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user