Skip to content

Commit

Permalink
Fix Bee Better compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Dec 17, 2019
1 parent 896409b commit 1f9cb4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ dependencies {
//to change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modCompileOnly "bee-better:BeeBetter:1.6.0"

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
org.gradle.jvmargs = -Xmx1G

# Fabric Properties
minecraft_version = 1.15
yarn_mappings = 1.15+build.2
loader_version = 0.7.2+build.174
minecraft_version = 1.15.1
yarn_mappings = 1.15.1+build.1
loader_version = 0.7.2+build.175

# Mod Properties
mod_version = 1.3.0+1.15
mod_version = 1.3.1+1.15.1
maven_group = io.github.juuxel
archives_base_name = BeeAngryest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package juuxel.bee.mixin.beebetter;

import com.github.draylar.beebetter.entity.ModdedBeehiveBlockEntity;
import com.github.draylar.beebetter.util.BeeState;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BeehiveBlockEntity;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.entity.Entity;
Expand All @@ -22,7 +22,7 @@ public ModdedBeehiveBlockEntityMixin(BlockEntityType<?> type) {
}

@Redirect(method = "releaseBee", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;isNight()Z"))
private boolean onReleaseBee_redirectIsNight(World world, BlockState state, CompoundTag tag, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState) {
private boolean onReleaseBee_redirectIsNight(World world, BlockState state, CompoundTag tag, @Nullable List<Entity> entities, BeeState beeState) {
return tag.getBoolean("Nocturnal") ? world.isDay() : world.isNight();
}
}

0 comments on commit 1f9cb4a

Please sign in to comment.