Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Target 1.16.3 for 1_16_R2; bump mcVersion for 1_16_R3 and 1_20_R3 (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
datatags committed Feb 3, 2024
1 parent 58d6151 commit 377423d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nms/1_16_R2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val mcVersion = "1.16.2"
val mcVersion = "1.16.3"

dependencies {
api(project(":mobchip-base"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public static Object fromNMS(Mob m, String key, Object nmsValue) {
if (nmsValue instanceof GlobalPos) {
GlobalPos l = (GlobalPos) nmsValue;
BlockPosition pos = l.getBlockPosition();
World w = ((CraftServer) Bukkit.getServer()).getHandle().getServer().f.b(IRegistry.L).a(l.getDimensionManager()).getWorld();
World w = ((CraftServer) Bukkit.getServer()).getHandle().getServer().customRegistry.b(IRegistry.L).a(l.getDimensionManager()).getWorld();
value = new Location(w, pos.getX(), pos.getY(), pos.getZ());
}
else if (nmsValue instanceof BlockPosition) {
Expand Down Expand Up @@ -1061,7 +1061,7 @@ public static boolean getBoolean(PathfinderGoal o, String name) {
return obj != null && obj;
}

public static int getInt(PathfinderGoal o, String name) {
public static int getInt(PathfinderGoal o, String name) {
Integer obj = getObject(o, name, Integer.class);
return obj == null ? 0 : obj;
}
Expand Down Expand Up @@ -1347,7 +1347,7 @@ public Attribute registerAttribute(NamespacedKey key, double defaultV, double mi
if (existsAttribute(key)) return null;

DedicatedServer server = ((CraftServer) Bukkit.getServer()).getServer();
IRegistryWritable<AttributeBase> writable = server.aX().b(IRegistry.y);
IRegistryWritable<AttributeBase> writable = server.getCustomRegistry().b(IRegistry.y);
ResourceKey<AttributeBase> nmsKey = ResourceKey.a(IRegistry.y, toNMS(key));
Attribute1_16_R2 att = new Attribute1_16_R2(key, defaultV, min, max, client);
writable.a(nmsKey, att, Lifecycle.stable());
Expand Down Expand Up @@ -1495,7 +1495,7 @@ public static MemoryModuleType<?> toNMS(Memory<?> mem) {
@Override
public void registerMemory(Memory<?> m) {
DedicatedServer server = ((CraftServer) Bukkit.getServer()).getServer();
IRegistryWritable<MemoryModuleType<?>> writable = server.aX().b(IRegistry.D);
IRegistryWritable<MemoryModuleType<?>> writable = server.getCustomRegistry().b(IRegistry.D);
ResourceKey<MemoryModuleType<?>> nmsKey = ResourceKey.a(IRegistry.D, toNMS(m.getKey()));
writable.a(nmsKey, toNMS(m), Lifecycle.stable());
}
Expand Down Expand Up @@ -1552,7 +1552,7 @@ public static MemoryModuleType<?> getMemory(NamespacedKey key) {
@Override
public void registerSensor(me.gamercoder215.mobchip.ai.sensing.Sensor<?> s) {
DedicatedServer server = ((CraftServer) Bukkit.getServer()).getServer();
IRegistryWritable<SensorType<?>> writable = server.aX().b(IRegistry.E);
IRegistryWritable<SensorType<?>> writable = server.getCustomRegistry().b(IRegistry.E);
ResourceKey<SensorType<?>> nmsKey = ResourceKey.a(IRegistry.E, toNMS(s.getKey()));
writable.a(nmsKey, toNMSType(s), Lifecycle.stable());
}
Expand Down
2 changes: 1 addition & 1 deletion nms/1_16_R3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val mcVersion = "1.16.4"
val mcVersion = "1.16.5"

dependencies {
api(project(":mobchip-base"))
Expand Down
2 changes: 1 addition & 1 deletion nms/1_20_R3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("io.github.patrick.remapper") version "1.4.0"
}

val mcVersion = "1.20.3"
val mcVersion = "1.20.4"

dependencies {
api(project(":mobchip-base"))
Expand Down

0 comments on commit 377423d

Please sign in to comment.