Skip to content

Commit d466e01

Browse files
committed
fix compile
1 parent a929ccc commit d466e01

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/main/java/org/teneted/neotenet/mixin/world/level/block/entity/MixinBeaconBlockEntity.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import java.util.function.Function;
3333

3434
@Mixin(BeaconBlockEntity.class)
35-
public class MixinBeaconBlockEntity implements InjectionBeaconBlockEntity {
35+
public abstract class MixinBeaconBlockEntity implements InjectionBeaconBlockEntity {
3636

3737
@Shadow
3838
@Nullable
@@ -45,6 +45,11 @@ public class MixinBeaconBlockEntity implements InjectionBeaconBlockEntity {
4545
@Nullable
4646
private Holder<MobEffect> secondaryPower;
4747

48+
@Shadow
49+
public static List getHumansInRange(Level par1, BlockPos par2, int par3) {
50+
return null;
51+
}
52+
4853
// CraftBukkit start - add fields and methods
4954
@Override
5055
public PotionEffect getPrimaryEffect() {
@@ -72,15 +77,6 @@ private static int getLevel(int i) {
7277
return j;
7378
}
7479

75-
public static List getHumansInRange(Level world, BlockPos blockposition, int i) {
76-
double d0 = (double) (i * 10 + 10);
77-
78-
AABB axisalignedbb = (new AABB(blockposition)).inflate(d0).expandTowards(0.0D, (double) world.getHeight(), 0.0D);
79-
List<Player> list = world.getEntitiesOfClass(Player.class, axisalignedbb);
80-
81-
return list;
82-
}
83-
8480
private static boolean hasSecondaryEffect(int i, @Nullable Holder<MobEffect> holder, @Nullable Holder<MobEffect> holder1) {
8581
if (i >= 4 && !Objects.equals(holder, holder1) && holder1 != null) {
8682
return true;

0 commit comments

Comments
 (0)