Skip to content

Commit b0e8338

Browse files
committed
Fix too strong anti-theft
1 parent cebbdbb commit b0e8338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scbrm/fidelity/mixin/HorseBaseEntityMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void _readCustomDataFromTag(CompoundTag tag, CallbackInfo info) {
103103

104104
@Inject(at = @At("HEAD"), method = "putPlayerOnBack(Lnet/minecraft/entity/player/PlayerEntity;)V", cancellable = true)
105105
void preventTheft(PlayerEntity player, CallbackInfo info){
106-
if(!this.isMaster(player)) {
106+
if(this.state.hasMaster() && !this.isMaster(player)) {
107107
if(!player.world.isClient)
108108
player.sendSystemMessage(new LiteralText("You do not own this animal"), NIL_UUID);
109109
info.cancel();

0 commit comments

Comments
 (0)