Skip to content

Commit b0d9250

Browse files
committed
Fake Spectator Fix
Signed-off-by: notstevy <notstevy@ultrabuildmc.de>
1 parent c8666dc commit b0d9250

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/net/minecraft/server/level/ServerPlayer.java
2+
+++ b/net/minecraft/server/level/ServerPlayer.java
3+
@@ -2413,7 +_,7 @@
4+
5+
@Override
6+
public void attack(Entity targetEntity) {
7+
- if (this.isSpectator()) {
8+
+ if (this.isSpectator() && !this.isFakeSpectator) { // kitpvp - Fake Spectator Utility
9+
this.setCamera(targetEntity);
10+
} else {
11+
super.attack(targetEntity);

0 commit comments

Comments
 (0)