Skip to content

Commit 81c1358

Browse files
crosby-moeWide-Cat
authored andcommitted
hotfix anchor aura & bed aura
1 parent 516ebca commit 81c1358

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/meteordevelopment/meteorclient/systems/modules/combat/AnchorAura.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import net.minecraft.util.math.Direction;
3636
import net.minecraft.util.math.Vec3d;
3737
import net.minecraft.world.RaycastContext;
38-
import net.minecraft.world.attribute.EnvironmentAttributes;
38+
import net.minecraft.world.World;
3939

4040
public class AnchorAura extends Module {
4141
private final SettingGroup sgGeneral = settings.getDefaultGroup();
@@ -274,7 +274,7 @@ public void onDeactivate() {
274274

275275
@EventHandler
276276
private void onTick(TickEvent.Pre event) {
277-
if (mc.world.getEnvironmentAttributes().getAttributeValue(EnvironmentAttributes.RESPAWN_ANCHOR_WORKS_GAMEPLAY)) {
277+
if (mc.world.getRegistryKey() == World.NETHER) {
278278
error("You can't blow up respawn anchors in this dimension, disabling.");
279279
toggle();
280280
return;

src/main/java/meteordevelopment/meteorclient/systems/modules/combat/BedAura.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import net.minecraft.util.math.BlockPos;
3535
import net.minecraft.util.math.Direction;
3636
import net.minecraft.util.math.Vec3d;
37-
import net.minecraft.world.attribute.EnvironmentAttributes;
37+
import net.minecraft.world.World;
3838

3939
public class BedAura extends Module {
4040
private final SettingGroup sgGeneral = settings.getDefaultGroup();
@@ -208,7 +208,7 @@ public void onActivate() {
208208
@EventHandler
209209
private void onTick(TickEvent.Post event) {
210210
// Check if beds can explode here
211-
if (!mc.world.getEnvironmentAttributes().getAttributeValue(EnvironmentAttributes.BED_RULE_GAMEPLAY).explodes()) {
211+
if (mc.world.getRegistryKey() == World.OVERWORLD) {
212212
error("You can't blow up beds in this dimension, disabling.");
213213
toggle();
214214
return;

0 commit comments

Comments
 (0)