Skip to content

Commit

Permalink
1.18-pre1: without the biome api
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Nov 11, 2021
1 parent c315057 commit 2e160e0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion fabric-registry-sync-v0/build.gradle
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public void onInitialize() {
// 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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand All @@ -48,7 +48,7 @@ public void fabric_clear() {

@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) {
Expand All @@ -68,7 +68,7 @@ public void fabric_removeId(int i) {
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);
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2e160e0

Please sign in to comment.