mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-28 03:56:59 -05:00
Update to 21w06a
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,5 +8,5 @@ dependencies {
|
||||
}
|
||||
|
||||
architectury {
|
||||
common()
|
||||
common(false)
|
||||
}
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user