update patterndump command to work with new command event (#2621)
* update patterndump command to work with new command event * update min required forge version * update changelog
This commit is contained in:
@@ -2,15 +2,15 @@ package com.refinedmods.refinedstorage.setup;
|
||||
|
||||
import com.refinedmods.refinedstorage.command.PatternDumpCommand;
|
||||
import net.minecraft.command.Commands;
|
||||
import net.minecraftforge.event.RegisterCommandsEvent;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
|
||||
|
||||
public class ServerSetup {
|
||||
@SubscribeEvent
|
||||
public void onServerStarting(FMLServerStartingEvent e) {
|
||||
e.getCommandDispatcher().register(
|
||||
public void onRegisterCommands(RegisterCommandsEvent e) {
|
||||
e.getDispatcher().register(
|
||||
Commands.literal("refinedstorage")
|
||||
.then(PatternDumpCommand.register(e.getCommandDispatcher()))
|
||||
.then(PatternDumpCommand.register(e.getDispatcher()))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -12,3 +12,14 @@ authors="Refined Mods"
|
||||
description='''
|
||||
An elegant solution to your hoarding problem
|
||||
'''
|
||||
[[dependencies.refinedstorage]] #optional
|
||||
# the modid of the dependency
|
||||
modId="forge" #mandatory
|
||||
# Does this dependency have to exist - if not, ordering below must be specified
|
||||
mandatory=true #mandatory
|
||||
# The version range of the dependency
|
||||
versionRange="[32.0.67,)" #mandatory
|
||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||
ordering="NONE"
|
||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||
side="BOTH"
|
Reference in New Issue
Block a user