removed entity invis thing (in meteor)
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package cloudburst.rejects.mixin;
|
||||
|
||||
import minegame159.meteorclient.systems.modules.Modules;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
|
||||
import cloudburst.rejects.modules.Rendering;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(Entity.class)
|
||||
public abstract class EntityMixin {
|
||||
@Inject(method = "isInvisibleTo(Lnet/minecraft/entity/player/PlayerEntity;)Z", at = @At("HEAD"), cancellable = true)
|
||||
private void isInvisibleToCanceller(PlayerEntity player, CallbackInfoReturnable<Boolean> info) {
|
||||
if (player == null) info.setReturnValue(false);
|
||||
|
||||
if (Modules.get().get(Rendering.class).renderEntities()) info.setReturnValue(false);
|
||||
}
|
||||
}
|
||||
@@ -45,13 +45,6 @@ public class Rendering extends Module {
|
||||
private final SettingGroup sgInvisible = settings.createGroup("Invisible");
|
||||
private final SettingGroup sgFun = settings.createGroup("Fun");
|
||||
|
||||
private final Setting<Boolean> entities = sgInvisible.add(new BoolSetting.Builder()
|
||||
.name("entities")
|
||||
.description("Render invisible entities.")
|
||||
.defaultValue(true)
|
||||
.build()
|
||||
);
|
||||
|
||||
private final Setting<Boolean> structureVoid = sgInvisible.add(new BoolSetting.Builder()
|
||||
.name("structure-void")
|
||||
.description("Render structure void blocks.")
|
||||
@@ -116,11 +109,6 @@ public class Rendering extends Module {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean renderEntities() {
|
||||
return this.isActive() && entities.get();
|
||||
}
|
||||
|
||||
|
||||
public boolean renderStructureVoid() {
|
||||
return this.isActive() && structureVoid.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user