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:
Darkere
2020-07-16 23:47:44 +02:00
committed by GitHub
parent 4b17b3e90c
commit f6ddf5c3d8
4 changed files with 18 additions and 5 deletions

View File

@@ -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()))
);
}
}

View File

@@ -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"