File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/meteordevelopment/meteorclient/systems/modules/combat Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3535import net .minecraft .util .math .Direction ;
3636import net .minecraft .util .math .Vec3d ;
3737import net .minecraft .world .RaycastContext ;
38- import net .minecraft .world .attribute . EnvironmentAttributes ;
38+ import net .minecraft .world .World ;
3939
4040public 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 ;
Original file line number Diff line number Diff line change 3434import net .minecraft .util .math .BlockPos ;
3535import net .minecraft .util .math .Direction ;
3636import net .minecraft .util .math .Vec3d ;
37- import net .minecraft .world .attribute . EnvironmentAttributes ;
37+ import net .minecraft .world .World ;
3838
3939public 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 ;
You can’t perform that action at this time.
0 commit comments