9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 19:39:22 +00:00

Recipe send all, and remove rei (#443 #391)

This commit is contained in:
violetc
2025-03-27 13:06:27 +08:00
parent bea888478e
commit 324ac1170b
4 changed files with 43 additions and 1 deletions

View File

@@ -835,6 +835,9 @@ public final class LeavesConfig {
@GlobalConfig("rei-server-protocol")
public boolean reiServerProtocol = false;
@GlobalConfig("recipe-send-all")
public boolean recipeSendAll = false;
}
public static MiscConfig mics = new MiscConfig();

View File

@@ -35,6 +35,7 @@ import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
// TODO refactor
public class LeavesProtocolManager {
private static final Class<?>[] PAYLOAD_PARAMETER_TYPES = {ResourceLocation.class, FriendlyByteBuf.class};

View File

@@ -19,7 +19,7 @@ import org.leavesmc.leaves.protocol.rei.payload.CreateItemHotbarPayload;
import org.leavesmc.leaves.protocol.rei.payload.CreateItemMessagePayload;
import org.leavesmc.leaves.protocol.rei.payload.CreateItemPayload;
@LeavesProtocol(namespace = "roughlyenoughitems")
// @LeavesProtocol(namespace = "roughlyenoughitems") TODO will fix
public class REIServerProtocol {
public static final String PROTOCOL_ID = "roughlyenoughitems";