Skip to content

Commit 4e9ef68

Browse files
committed
Merge remote-tracking branch 'origin/1.21.1-aria-for-painters-mojmap' into 1.21.1-aria-for-painters-mojmap
2 parents 6409f1a + 3ca13a7 commit 4e9ef68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/dafuqs/spectrum/api/item/GravitableItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ default double applyGravity(ItemStack stack, Level world, Entity entity) {
2222
if (world != null && entity != null) {
2323
// don't affect creative/spectators/... players or immune boss mobs
2424
if (entity.isPushable() && !entity.isNoGravity() && !entity.isSpectator()) {
25-
if (entity instanceof Player player && player.isCreative()) {
25+
if (entity instanceof Player player && player.getAbilities().flying) {
2626
return 0;
2727
}
2828

0 commit comments

Comments
 (0)