Update to 21w06a

This commit is contained in:
shedaniel
2021-02-11 21:45:52 +08:00
parent 7eb6a7b4e7
commit 7c7c28d909
7 changed files with 13 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ public final class ItemStackHooks {
}
public static void giveItem(ServerPlayer player, ItemStack stack) {
boolean bl = player.inventory.add(stack);
boolean bl = player.getInventory().add(stack);
if (bl && stack.isEmpty()) {
stack.setCount(1);
ItemEntity entity = player.drop(stack, false);

View File

@@ -26,12 +26,16 @@ architectury {
platformSetupLoomIde()
}
repositories {
maven { url "https://maven.terraformersmc.com/releases/" }
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings minecraft.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
modCompileOnly "io.github.prospector:modmenu:${rootProject.mod_menu_version}"
modCompileOnly "com.terraformersmc:modmenu:${rootProject.mod_menu_version}"
implementation "net.jodah:typetools:0.6.2"
shadow "net.jodah:typetools:0.6.2"

View File

@@ -42,7 +42,6 @@ public interface MixinBlockEntityExtension extends BlockEntityClientSerializable
default void fromClientTag(CompoundTag tag) {
BlockEntity entity = (BlockEntity) this;
if (entity.hasLevel()) {
entity.setLevelAndPosition(entity.getLevel(), new BlockPos(tag.getInt("x"), tag.getInt("y"), tag.getInt("z")));
loadClientData(entity.getBlockState(), tag);
}
}

View File

@@ -26,7 +26,7 @@ public class MixinPersistentEntitySectionManager<T extends EntityAccess> impleme
}
@Inject(method = "addEntity", at = @At(value = "INVOKE",
target = "Lnet/minecraft/world/level/entity/EntitySectionStorage;entityPosToSectionKey(Lnet/minecraft/core/BlockPos;)J"),
target = "Lnet/minecraft/core/SectionPos;asLong(Lnet/minecraft/core/BlockPos;)J"),
cancellable = true)
private void addEntity(T entityAccess, boolean bl, CallbackInfoReturnable<Boolean> cir) {
// TODO: Check if other classes implements EntityAccess as well

View File

@@ -1,8 +1,8 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
minecraft_version=20w51a
supported_version=20w51a
minecraft_version=21w06a
supported_version=21w06a
cf_type=beta
@@ -11,8 +11,8 @@ archives_base_name_snapshot=architectury-snapshot
base_version=2.0
maven_group=me.shedaniel
fabric_loader_version=0.10.8
fabric_api_version=0.29.3+1.17
mod_menu_version=2.0.0-beta.1+build.2
fabric_loader_version=0.11.1
fabric_api_version=0.30.2+1.17
mod_menu_version=2.0.0-beta.2
#forge_version=35.1.36

View File

@@ -8,5 +8,5 @@ dependencies {
}
architectury {
common()
common(false)
}

View File

@@ -12,7 +12,6 @@ dependencies {
mappings loom.officialMojangMappings()
modCompile "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
modCompile "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
modCompileOnly "io.github.prospector:modmenu:${rootProject.mod_menu_version}"
implementation project(path: ":fabric", configuration: "dev")
compileOnly(project(path: ":common")) {