mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-01 01:30:00 -04:00
1.18-pre1: without the biome api
This commit is contained in:
parent
c3150579ea
commit
2e160e0f26
6 changed files with 11 additions and 14 deletions
build.gradle
fabric-registry-sync-v0
settings.gradle
|
@ -9,7 +9,7 @@ plugins {
|
|||
id "eclipse"
|
||||
id "idea"
|
||||
id "maven-publish"
|
||||
id "fabric-loom" version "0.10.50" apply false
|
||||
id "fabric-loom" version "0.10.54" apply false
|
||||
id "org.cadixdev.licenser" version "0.6.1"
|
||||
id "org.ajoberstar.grgit" version "3.1.0"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
|
@ -19,9 +19,9 @@ plugins {
|
|||
def ENV = System.getenv()
|
||||
|
||||
class Globals {
|
||||
static def baseVersion = "0.42.1"
|
||||
static def mcVersion = "21w44a"
|
||||
static def yarnVersion = "+build.1"
|
||||
static def baseVersion = "0.42.2"
|
||||
static def mcVersion = "1.18-pre1"
|
||||
static def yarnVersion = "+build.2"
|
||||
static def loaderVersion = "0.11.7"
|
||||
static def preRelease = true
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-registry-sync-v0"
|
||||
version = getSubprojectVersion(project, "0.8.2")
|
||||
version = getSubprojectVersion(project, "0.8.3")
|
||||
|
||||
moduleDependencies(project, [
|
||||
'fabric-api-base',
|
||||
|
|
|
@ -63,9 +63,6 @@ public class FabricRegistryInit implements ModInitializer {
|
|||
// Serialised by string, doesnt seem to be synced
|
||||
RegistryAttributeHolder.get(Registry.FEATURE);
|
||||
|
||||
// Serialised by string, doesnt seem to be synced
|
||||
RegistryAttributeHolder.get(Registry.DECORATOR);
|
||||
|
||||
// Serialised by string, doesnt seem to be synced
|
||||
RegistryAttributeHolder.get(Registry.BLOCK_STATE_PROVIDER_TYPE);
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import net.fabricmc.fabric.api.event.registry.DynamicRegistrySetupCallback;
|
|||
|
||||
@Mixin(DynamicRegistryManager.class)
|
||||
public class DynamicRegistryManagerMixin {
|
||||
@Inject(method = "create", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;<init>()V"), locals = LocalCapture.CAPTURE_FAILHARD)
|
||||
@Inject(method = "create", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/dynamic/EntryLoader$Impl;<init>()V"), locals = LocalCapture.CAPTURE_FAILHARD)
|
||||
private static void onCreateImpl(CallbackInfoReturnable<DynamicRegistryManager.Impl> cir, DynamicRegistryManager.Impl registryManager) {
|
||||
DynamicRegistrySetupCallback.EVENT.invoker().onRegistrySetup(registryManager);
|
||||
}
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
package net.fabricmc.fabric.mixin.registry.sync;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.IdentityHashMap;
|
||||
import java.util.List;
|
||||
|
||||
import it.unimi.dsi.fastutil.ints.Int2IntMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2IntMaps;
|
||||
import it.unimi.dsi.fastutil.objects.Object2IntMap;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.Unique;
|
||||
|
@ -35,7 +35,7 @@ public class MixinIdList<T> implements RemovableIdList<T> {
|
|||
@Shadow
|
||||
private int nextId;
|
||||
@Shadow
|
||||
private IdentityHashMap<T, Integer> idMap;
|
||||
private Object2IntMap<T> idMap;
|
||||
@Shadow
|
||||
private List<T> list;
|
||||
|
||||
|
@ -48,7 +48,7 @@ public class MixinIdList<T> implements RemovableIdList<T> {
|
|||
|
||||
@Unique
|
||||
private void fabric_removeInner(T o) {
|
||||
int value = idMap.remove(o);
|
||||
int value = idMap.removeInt(o);
|
||||
list.set(value, null);
|
||||
|
||||
while (nextId > 1 && list.get(nextId - 1) == null) {
|
||||
|
@ -68,7 +68,7 @@ public class MixinIdList<T> implements RemovableIdList<T> {
|
|||
List<T> removals = new ArrayList<>();
|
||||
|
||||
for (T o : idMap.keySet()) {
|
||||
int j = idMap.get(o);
|
||||
int j = idMap.getInt(o);
|
||||
|
||||
if (i == j) {
|
||||
removals.add(o);
|
||||
|
|
|
@ -14,7 +14,7 @@ rootProject.name = "fabric-api"
|
|||
include 'fabric-api-base'
|
||||
|
||||
include 'fabric-api-lookup-api-v1'
|
||||
include 'fabric-biome-api-v1'
|
||||
//include 'fabric-biome-api-v1'
|
||||
include 'fabric-blockrenderlayer-v1'
|
||||
include 'fabric-commands-v0'
|
||||
include 'fabric-command-api-v1'
|
||||
|
|
Loading…
Add table
Reference in a new issue