Skip to content

Commit

Permalink
1.18-pre1
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Nov 12, 2021
1 parent eb429c3 commit af89262
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.modrinth.minotaur.TaskModrinthUpload

plugins {
id 'fabric-loom' version '0.8-SNAPSHOT'
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'maven-publish'
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "1.1.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.17.1
yarn_mappings=1.17.1+build.59
loader_version=0.11.6
minecraft_version=1.18-pre1
yarn_mappings=1.18-pre1+build.3
loader_version=0.12.5

#Fabric api
fabric_version=0.40.0+1.17
fabric_version=0.42.2+1.18

# Mod Properties
mod_version = 1.0.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class HealthbarCommand {
public static void register(CommandDispatcher<ServerCommandSource> dispatcher, boolean dedicated) {
dispatcher.register(literal("healthbar")
.then(literal("toggle").executes(HealthbarCommand::toggleHealthBar))
.then(literal("edit")
.then(literal("preferences")
.then(literal("style")
.then(argument("style", word())
.suggests(HEALTHBAR_STYLES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class ServerPlayNetworkHandlerMixin_HealthTag {
private void onPacketSend(Packet<?> packet, GenericFutureListener<? extends Future<? super Void>> listener, CallbackInfo ci) {
if(packet instanceof EntityTrackerUpdateS2CPacket) {
int id = ((EntityTrackerUpdateS2CPacketAccessor) packet).getId();
Entity entity = this.player.getServerWorld().getEntityById(id);
Entity entity = this.player.getWorld().getEntityById(id);

if(
entity instanceof LivingEntity living &&
Expand Down

0 comments on commit af89262

Please sign in to comment.