Add option to configure listing fake players on the multiplayer screen (#1756)

This commit is contained in:
Filip Š authored and GitHub committed 2023-07-28 15:27:03 +02:00
1 parent b1cc289a49
commit efddb904a0
2 files changed
+8

No files matched your search

@@ -190,6 +190,11 @@ public class EntityPlayerMPFake extends ServerPlayer
return "127.0.0.1";
}
@Override
public boolean allowsListing() {
return CarpetSettings.allowListingFakePlayers;
}
@Override
protected void checkFallDamage(double y, boolean onGround, BlockState state, BlockPos pos) {
doCheckFallDamage(0.0, y, 0.0, onGround);