Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed May 8, 2021
1 parent 74c0dc0 commit f37b9df
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 25 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew generateChangelog build uploadSubProjects curseforge github publishToModrinth --stacktrace
run: ./gradlew generateChangelog build curseforge github publishToModrinth --stacktrace
env:
BINTRAY_USER: oroarmor
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
CURSE_API_KEY: ${{ secrets.CURSE_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
DISCORD_ANNOUNCEMENT_WEBHOOK: ${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK }}
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
exclude(module: "fabric-loader")
}

modCompile('com.oroarmor:multi-item-lib:1.2.0') {
modCompile('com.oroarmor:multi-item-lib:1.3.0') {
exclude(module: "fabric-api")
exclude(module: "fabric-loader")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public static DyeColor getColor(Block block) {
return block instanceof NetheriteShulkerBoxBlock ? ((NetheriteShulkerBoxBlock) block).getColor() : null;
}

@Environment(EnvType.CLIENT)
public static DyeColor getColor(Item item) {
return getColor(Block.getBlockFromItem(item));
}
Expand All @@ -149,7 +148,6 @@ protected void appendProperties(StateManager.Builder<Block, BlockState> builder)
}

@Override
@Environment(EnvType.CLIENT)
public void appendTooltip(ItemStack stack, BlockView world, List<Text> tooltip, TooltipContext options) {
super.appendTooltip(stack, world, tooltip, options);
CompoundTag compoundTag = stack.getSubTag("BlockEntityTag");
Expand Down Expand Up @@ -223,7 +221,6 @@ public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos po
}

@Override
@Environment(EnvType.CLIENT)
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
ItemStack itemStack = super.getPickStack(world, pos, state);
NetheriteShulkerBoxBlockEntity shulkerBoxBlockEntity = (NetheriteShulkerBoxBlockEntity) world.getBlockEntity(pos);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ public void playSound(SoundEvent soundEvent) {
world.playSound(null, pos, soundEvent, SoundCategory.BLOCKS, 1.0F, 1.0F);
}

@Environment(EnvType.CLIENT)
public List<NetheriteBeaconBlockEntity.BeamSegment> getBeamSegments() {
return beaconLevel == 0 ? ImmutableList.of() : beamSegments;
}
Expand Down Expand Up @@ -419,12 +418,10 @@ protected void increaseHeight() {
++height;
}

@Environment(EnvType.CLIENT)
public float[] getColor() {
return color;
}

@Environment(EnvType.CLIENT)
public int getHeight() {
return height;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ private Box getCollisionBox(Direction facing) {
return this.getBoundingBox(facing).shrink(direction.getOffsetX(), direction.getOffsetY(), direction.getOffsetZ());
}

@Environment(EnvType.CLIENT)
public DyeColor getColor() {
if (cachedColorUpdateNeeded) {
cachedColor = NetheriteShulkerBoxBlock.getColor(getCachedState().getBlock());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public NetheriteFishingBobberEntity(PlayerEntity thrower, World world, int lureL
super(thrower, world, lureLevel, luckOfTheSeaLevel);
}

@Environment(EnvType.CLIENT)
public NetheriteFishingBobberEntity(World world, PlayerEntity thrower, double x, double y, double z) {
super(world, thrower, x, y, z);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public NetheriteTridentEntity(EntityType<? extends TridentEntity> entityType, Wo
tridentStack = new ItemStack(NetheritePlusItems.NETHERITE_TRIDENT.get());
}

@Environment(EnvType.CLIENT)
public NetheriteTridentEntity(World world, double x, double y, double z) {
super(world, x, y, z);
tridentStack = new ItemStack(NetheritePlusItems.NETHERITE_TRIDENT.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public float getKnockbackResistance() {
}

@Override
@Environment(EnvType.CLIENT)
public String getName() {
return name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public NetheriteHorseArmorItem(int bonus, Settings settings) {
}

@Override
@Environment(EnvType.CLIENT)
public Identifier getEntityTexture() {
return id("textures/entity/netherite_horse_armor.png");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class UpdateNetheriteBeaconC2SPacket extends UpdateBeaconC2SPacket {

private int tertiaryEffectId;

@Environment(EnvType.CLIENT)
public UpdateNetheriteBeaconC2SPacket(int primaryEffectId, int secondaryEffectId, int tertiaryEffectId) {
super(primaryEffectId, secondaryEffectId);
this.tertiaryEffectId = tertiaryEffectId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public ItemStack craft(CraftingInventory craftingInventory) {
}

@Override
@Environment(EnvType.CLIENT)
public boolean fits(int width, int height) {
return width * height >= 2;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public ItemStack craft(CraftingInventory craftingInventory) {
}

@Override
@Environment(EnvType.CLIENT)
public boolean fits(int width, int height) {
return width * height >= 2;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ protected boolean canUse(BlockState state) {
return state.isOf(NetheritePlusBlocks.NETHERITE_ANVIL_BLOCK.get());
}

@Environment(EnvType.CLIENT)
public int getLevelCost() {
return levelCost.get();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public static <T extends ScreenHandler> ScreenHandlerType<T> register(Identifier
public static void init() {
}

@Environment(EnvType.CLIENT)
public static void initializeClient() {
MenuRegistry.registerScreenFactory(NetheritePlusScreenHandlers.NETHERITE_ANVIL, NetheriteAnvilScreen::new);
MenuRegistry.registerScreenFactory(NetheritePlusScreenHandlers.NETHERITE_BEACON, NetheriteBeaconScreen::new);
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ dependencies {

//Libraries
includeLibraries(['com.oroarmor:oro-config-fabric:3.0.0',
'com.oroarmor:multi-item-lib:1.2.0'])
'com.oroarmor:multi-item-lib:1.3.0'])

runAndCompile([/*"net.kyrptonaught:quickshulker:${project.quickshulker}",*/
"com.github.emilyploszaj:trinkets:${project.trinkets}",
Expand Down
4 changes: 2 additions & 2 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies {
exclude(module: "fabric-loader")
}

modImplementation('com.oroarmor:oro-config-forge:3.0.0')
modRuntime('com.oroarmor:oro-config-forge:3.0.0')
shadow(modImplementation('com.oroarmor:oro-config-forge:3.1.0'))
modRuntime('com.oroarmor:oro-config-forge:3.1.0')

implementation(project(path: ":common")) {
exclude(module: "fabric-loader")
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ org.gradle.jvmargs=-Xmx2G
minecraft_version=1.16.5
fabric_loader_version=0.11.3
# Mod Properties
mod_version=1.4.3
mod_version=1.4.4
maven_group=com.oroarmor
archives_base_name=netherite-plus-mod
project_name=Netherite Plus Mod
# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.34.0+1.16
forge_version=36.1.0
forge_version=36.1.16
architectury_version=1.9.136
mappings=1.16.5+build.8

0 comments on commit f37b9df

Please sign in to comment.