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

@@ -1,4 +1,6 @@
# Refined Storage Changelog
### 1.9.2
- Fixed crash with forge version 67 (Darkere)
### 1.9.1
- Fixed server crash (raoulvdberge)

View File

@@ -94,7 +94,7 @@ processResources {
}
dependencies {
minecraft 'net.minecraftforge:forge:1.16.1-32.0.63'
minecraft 'net.minecraftforge:forge:1.16.1-32.0.67'
compileOnly fg.deobf("mezz.jei:jei-1.16.1:7.0.0.6:api")
runtimeOnly fg.deobf("mezz.jei:jei-1.16.1:7.0.0.6")

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"