mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 18:42:07 +01:00
Avoid switch on material in previous commit
See 9c7e65d17a4ed6c3d73935027bdbb9ea9d3c2965 for further info By: md_5 <git@md-5.net>
This commit is contained in:
parent
d310f63995
commit
2923c2979f
@ -53,12 +53,7 @@ public class CraftMetaMusicInstrument extends CraftMetaItem implements MusicInst
|
||||
|
||||
@Override
|
||||
boolean applicableTo(Material type) {
|
||||
switch (type) {
|
||||
case GOAT_HORN:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return type == Material.GOAT_HORN;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user