Skip to content

Commit

Permalink
Fix #448
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Nov 15, 2023
1 parent 74f7fb3 commit cc2b8c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ buildscript {

plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.1-SNAPSHOT" apply false
id "dev.architectury.loom" version "1.4-SNAPSHOT" apply false
id "org.cadixdev.licenser" version "0.6.1"
id "io.github.juuxel.loom-vineflower" version "1.11.0" apply false
id "me.shedaniel.unified-publishing" version "0.1.+" apply false
id "maven-publish"
}
Expand All @@ -21,7 +20,6 @@ architectury {

subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: "io.github.juuxel.loom-vineflower"

loom {
silentMojangMappingsLicense()
Expand Down Expand Up @@ -56,7 +54,7 @@ allprojects {

tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 16
options.release = 17
}

javadoc {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

package dev.architectury.hooks.level.entity.forge;

import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.player.Player;
import net.minecraftforge.common.util.FakePlayer;

public class PlayerHooksImpl {
public static boolean isFake(Player playerEntity) {
return playerEntity instanceof FakePlayer;
return playerEntity instanceof ServerPlayer && playerEntity.getClass() != ServerPlayer.class;
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fabric_loader_version=0.14.22
fabric_api_version=0.89.1+1.20.2
mod_menu_version=7.0.0

forge_version=48.0.1
forge_version=48.0.38

curseforge_id=419699
modrinth_id=lhGA9TYQ
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.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit cc2b8c7

Please sign in to comment.