Skip to content

Commit

Permalink
client fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar committed Sep 17, 2024
1 parent f43b56e commit 27bbc2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/violetmoon/quark/base/Quark.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class Quark {

public Quark() {
instance = this;

ZETA.start();

proxy = Env.unsafeRunForDist(() -> ClientProxy::new, () -> CommonProxy::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ public void playerTick(ZPlayerTick.Start event) {
private boolean canPlayerHostChicken(Player player) {
//check for known player classes as to avoid fake players (impls)
var playerClass = player.getClass();
if (playerClass != ServerPlayer.class && !Client.isClientPlayerClass(playerClass))
return false;
if(player.level().isClientSide){
if(!Client.isClientPlayerClass(playerClass)) return false;
}else if (playerClass != ServerPlayer.class) return false;

return (!needsNoHelmet || player.getItemBySlot(EquipmentSlot.HEAD).isEmpty()) && !player.isUnderWater();
}

Expand Down

0 comments on commit 27bbc2b

Please sign in to comment.