Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.1-SNAPSHOT'
id 'fabric-loom' version '1.3.+'
}

sourceCompatibility = JavaVersion.VERSION_17
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
org.gradle.jvmargs=-Xmx2G
# Fabric Properties
# Check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.17
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.22
#Fabric api
fabric_version=0.76.0+1.19.4
fabric_version=0.90.4+1.20.1
# Mod Properties
version=1.4.0
maven_group=ru.maxvar
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/java/ru/maxvar/mcf/easyfeed/EatTreatsGoal.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public boolean canStart() {

private ItemEntity findClosestFood() {
//find if any suitable food is around
List<ItemEntity> entities = animal.world.getEntitiesByClass(
List<ItemEntity> entities = animal.getWorld().getEntitiesByClass(
ItemEntity.class, animal.getBoundingBox().expand(range),
itemEntity -> animal.isBreedingItem(itemEntity.getStack()));
ItemEntity food = null;
Expand All @@ -59,7 +59,7 @@ public boolean shouldContinue() {

@Override
public void tick() {
if (targetFood != null && !animal.world.isClient && isEager(animal)) {
if (targetFood != null && !animal.getWorld().isClient && isEager(animal)) {
if (!targetFood.getStack().isEmpty()) {
//move animal
animal.getLookControl().lookAt(targetFood, animal.getMaxLookYawChange(), animal.getMaxLookPitchChange());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"depends": {
"fabricloader": ">=${loader_version}",
"fabric": "*",
"minecraft": "${minecraft_version}",
"minecraft": ">=${minecraft_version}",
"java": ">=17"
},
"custom": {
Expand Down