Forge SidedProxy is deprecated

1.5k views Asked by At

In main class:

@SidedProxy(clientSide = "com.dimacrafter.cilivization.proxy.ClientProxy", serverSide = "com.dimacrafter.cilivization.proxy.CommonProxy")
public static CommonProxy proxy;

Warning:

'net.minecraftforge.fml.common.SidedProxy' is deprecated
This inspection reports where deprecated code is used in the specified inspection scope

Minecraft Client is crashed before mod pre-initialization. How fix it?

2

There are 2 answers

2
sschrass On

@Deprecated means that something is there, but you have to expect that someday it will be gone -> it works for now.

The warning says that @SidedProxy falls under this condition, but the documentation should (if it is any good) give you a hint to a replacement.

0
Adrodoc On

According to this gist: https://gist.github.com/xt9/55a04226728cebe729fe37cc7aa9d10f#fml-demonstration @SidedProxy was replaced with DistExecutor in Forge for Minecraft 1.13.