Skip to content

Commit

Permalink
Merge branch 'architectury-1.19.4' into architectury-1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlikePaladin committed Aug 30, 2023
2 parents 8164047 + ae9d9a8 commit eb9bd38
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ public static String translate(String key, Object ... args) {
}
}

//TODO: check if the mod version's different and regen assets
//TODO: Waterlog chairs and tables only
public void generateTranslationForLampBlock(BufferedWriter writer) {
for (WoodVariant variant : WoodVariantRegistry.getVariants()) {
for (DyeColor color : DyeColor.values()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ public void onInitialize() {
GENERAL_LOGGER.error("Failed to initialize Paladin's Furniture configuration, default values will be used instead");
GENERAL_LOGGER.error("", e);
}
this.commonInit();

EntityRegistryFabric.registerEntities();
PaladinFurnitureModFabric.initializeItemGroup();
BlockItemRegistryFabric.registerItems();
BlockItemRegistryFabric.registerBlocks();
this.commonInit();
//PFMRuntimeResources.prepareAsyncResourceGen(); No async gen because Forge won't behave, blame it.
PFMRuntimeResources.ready = true;
StatisticsRegistryFabric.registerStatistics();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.ConfirmScreen;
import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.text.TranslatableText;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.util.Util;
import org.spongepowered.asm.mixin.Mixin;
Expand Down Expand Up @@ -50,9 +50,9 @@ public class PFMTitleScreenMixin {
MinecraftClient.getInstance().stop();
}
},
new TranslatableText("pfm.compat.failure.title").formatted(Formatting.RED),
new TranslatableText(reason),
new TranslatableText("pfm.compat.failure.indiumNotFound"),
new TranslatableText("menu.quit")));
Text.translatable("pfm.compat.failure.title").formatted(Formatting.RED),
Text.translatable(reason),
Text.translatable("pfm.compat.failure.indiumNotFound"),
Text.translatable("menu.quit")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

import java.util.*;

//TODO: oven and freezer support, make the freezer always provide ice, custom crafting counter
public class FridgeBlockEntityBalm extends FridgeBlockEntity implements BalmContainerProvider, BalmProviderHolder, BlockEntityContract {
private final DefaultKitchenItemProvider itemProvider;

Expand Down Expand Up @@ -103,6 +102,7 @@ private void addCapabilities(BalmProvider<?> provider, Map<Capability<?>, LazyOp
} else if (provider.getProviderClass() == EnergyStorage.class) {
capabilities.put(ForgeCapabilities.ENERGY, LazyOptional.of(() -> new ForgeEnergyStorage((EnergyStorage)provider.getInstance())));
}

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public PaladinFurnitureModForge() {
GENERAL_LOGGER.error("Failed to initialize Paladin's Furniture configuration, default values will be used instead");
GENERAL_LOGGER.error("", e);
}
this.commonInit();
MinecraftForge.EVENT_BUS.register(EntityRegistryForge.class);
MinecraftForge.EVENT_BUS.register(BlockItemRegistryForge.class);
MinecraftForge.EVENT_BUS.register(StatisticsRegistryForge.class);
Expand All @@ -39,7 +40,6 @@ public PaladinFurnitureModForge() {
MinecraftForge.EVENT_BUS.register(NetworkRegistryForge.class);
NetworkRegistryForge.registerPackets();
LateBlockRegistryForge.addDynamicBlockRegistration();
this.commonInit();
PaladinFurnitureMod.isClient = FMLEnvironment.dist == Dist.CLIENT;
FMLJavaModLoadingContext.get().getModEventBus().addListener(ItemGroupRegistryForge::registerItemGroups);
FMLJavaModLoadingContext.get().getModEventBus().addListener(ItemGroupRegistryForge::addToVanillaItemGroups);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version=1.20.1
enabled_platforms=fabric,forge

archives_base_name=paladin-furniture-mod
mod_version=1.2.0-rc2
mod_version=1.2.0-rc3
maven_group=com.unlikepaladin

architectury_version=9.1.12
Expand Down

0 comments on commit eb9bd38

Please sign in to comment.