mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-28 07:35:44 +00:00
Begin updating Mantle to 1.14.2! Lots of things are broken again sadly :/
This commit is contained in:
1 parent
75faf82159
commit
e0b30fdf33
58 files changed
+436
-439
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package slimeknights.mantle.config;
|
||||
|
||||
import net.minecraft.client.network.NetHandlerPlayClient;
|
||||
import net.minecraft.network.NetHandlerPlayServer;
|
||||
import net.minecraft.client.network.play.ClientPlayNetHandler;
|
||||
import net.minecraft.network.play.ServerPlayNetHandler;
|
||||
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -20,13 +20,13 @@ public abstract class AbstractConfigSyncPacket extends AbstractPacket {
|
||||
protected abstract AbstractConfig getConfig();
|
||||
|
||||
@Override
|
||||
public IMessage handleClient(NetHandlerPlayClient netHandler) {
|
||||
public IMessage handleClient(ClientPlayNetHandler netHandler) {
|
||||
sync();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMessage handleServer(NetHandlerPlayServer netHandler) {
|
||||
public IMessage handleServer(ServerPlayNetHandler netHandler) {
|
||||
// We sync from server to client, not vice versa
|
||||
throw new UnsupportedOperationException("Trying to sync client configs to the server. You registered the packet for the wrong side.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user