Skip to content

Commit

Permalink
fix TextureAtlas for invalid dist DEDICATED_SERVER
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlimiter committed Jun 12, 2022
1 parent 1d67e69 commit f138f49
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ apply plugin: 'org.spongepowered.mixin'
apply plugin: 'org.parchmentmc.librarian.forgegradle'

group = 'nova.committee'
version = '1.18.2-1.0.9'
version = '1.18.2-1.1.0'

java {
archivesBaseName = 'Avaritia-Reforged-forge'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import net.minecraftforge.items.wrapper.InvWrapper;
import net.minecraftforge.registries.ForgeRegistryEntry;
import nova.committee.avaritia.init.registry.ModRecipeTypes;
import org.jetbrains.annotations.NotNull;

/**
* Description:
Expand Down Expand Up @@ -52,7 +53,7 @@ public ItemStack getResultItem() {
}

@Override
public NonNullList<Ingredient> getIngredients() {
public @NotNull NonNullList<Ingredient> getIngredients() {
return this.inputs;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package nova.committee.avaritia.init.handler;

import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.ScreenEvent;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
Expand All @@ -16,7 +17,7 @@
* Date: 2022/6/5 13:44
* Version: 1.0
*/
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE)
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT)
public class RenderHandler {
public static FloatBuffer cosmicUVs = BufferUtils.createFloatBuffer(4 * 10);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.inventory.InventoryMenu;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.TextureStitchEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
Expand All @@ -15,7 +16,7 @@
* Date: 2022/6/5 12:41
* Version: 1.0
*/
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
public class TexturesHandler {
private static final String SHADER_ = "avaritia:shaders/";
public static TextureAtlasSprite[] COSMIC;
Expand Down

0 comments on commit f138f49

Please sign in to comment.