Skip to content

Commit

Permalink
Update minigame to Minecraft 1.20.1 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 authored Jun 29, 2023
1 parent 7c64cd4 commit f9e0661
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.18
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.1
loader_version=0.14.21

# Dependencies
fabric_version=0.76.0+1.19.4
plasmid_version=0.5+1.19.4-SNAPSHOT
fabric_version=0.83.1+1.20.1
plasmid_version=0.5+1.20.1-SNAPSHOT

# Mod Properties
mod_version=1.1.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void setOwnerTeam(@Nullable GameTeamKey team, BlockBounds home) {
this.ownerTeam = team;
this.home = home;
this.lastDropPos = null;
this.lastValidTime = this.world.getTime();
this.lastValidTime = this.getWorld().getTime();

this.getNavigation().stop();

Expand All @@ -64,7 +64,7 @@ public void setOwnerTeam(@Nullable GameTeamKey team, BlockBounds home) {

public void drop() {
this.lastDropPos = this.getPos();
this.lastPickUpTime = this.world.getTime();
this.lastPickUpTime = this.getWorld().getTime();
}

public boolean tryPickUp(long time, GameTeamKey team) {
Expand Down Expand Up @@ -104,7 +104,7 @@ protected void mobTick() {
this.game.tickSheep(this);

if (this.home != null) {
long time = this.world.getTime();
long time = this.getWorld().getTime();
if (this.hasVehicle() || this.home.contains(this.getBlockPos())) {
this.lastValidTime = time;
}
Expand Down Expand Up @@ -182,7 +182,7 @@ private Vec3d getWanderTarget() {
targetZ = MathHelper.floor(z + deltaZ);
}

int topY = FarmSheepEntity.this.world.getTopY(Heightmap.Type.MOTION_BLOCKING, targetX, targetZ);
int topY = FarmSheepEntity.this.getWorld().getTopY(Heightmap.Type.MOTION_BLOCKING, targetX, targetZ);
return new Vec3d(targetX + 0.5, topY, targetZ + 0.5);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public final class EntityRayTrace {
@Nullable
public static EntityHitResult rayTrace(Entity sourceEntity, double range, double margin, Predicate<Entity> predicate) {
World world = sourceEntity.world;
World world = sourceEntity.getWorld();

Vec3d origin = sourceEntity.getCameraPosVec(1.0F);
Vec3d delta = sourceEntity.getRotationVec(1.0F).multiply(range);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void captureSheep(FarmSheepEntity sheep, GameTeamKey team) {
}

private void spawnFireworkAt(Entity entity, GameTeamKey team) {
World world = entity.world;
World world = entity.getWorld();

int flight = world.random.nextInt(3);

Expand All @@ -66,7 +66,7 @@ private void spawnFireworkAt(Entity entity, GameTeamKey team) {
ItemStackBuilder.firework(this.game.teamManager.getTeamConfig(team).dyeColor().getRgb(), flight, type).build()
);

entity.world.spawnEntity(firework);
world.spawnEntity(firework);
}

private boolean isCapturedBy(Vec3d pos, GameTeamKey team) {
Expand Down

0 comments on commit f9e0661

Please sign in to comment.