Updated in preparation for 1.19.1
This commit is contained in:
parent
fcb91b25e0
commit
cdbc6a6fcb
2 changed files with 8 additions and 3 deletions
|
@ -33,8 +33,8 @@ public class ItemRegistry extends BaseRegistry<Item> {
|
|||
super(creativeTab, config);
|
||||
}
|
||||
|
||||
public Item registerDisc(ResourceLocation itemId, int power, SoundEvent sound) {
|
||||
BaseDiscItem item = new BaseDiscItem(power, sound, makeItemSettings().stacksTo(1));
|
||||
public Item registerDisc(ResourceLocation itemId, int power, SoundEvent sound, int lengthInSeconds) {
|
||||
BaseDiscItem item = new BaseDiscItem(power, sound, makeItemSettings().stacksTo(1), lengthInSeconds);
|
||||
|
||||
if (!config.getBoolean("musicDiscs", itemId.getPath(), true)) {
|
||||
return item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue