From f279e4d1afee47a3c450a1657aa414182e4cf38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ossi=20Erkkil=C3=A4?= Date: Tue, 14 Nov 2023 22:57:38 +0200 Subject: [PATCH] setAnd -> set --- .../data/provider/entity/ThrowableItemProjectileData.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/spongepowered/common/data/provider/entity/ThrowableItemProjectileData.java b/src/main/java/org/spongepowered/common/data/provider/entity/ThrowableItemProjectileData.java index 333da361f0a..605b675f489 100644 --- a/src/main/java/org/spongepowered/common/data/provider/entity/ThrowableItemProjectileData.java +++ b/src/main/java/org/spongepowered/common/data/provider/entity/ThrowableItemProjectileData.java @@ -40,11 +40,7 @@ public static void register(final DataProviderRegistrator registrator) { .asMutable(ThrowableItemProjectile.class) .create(Keys.ITEM_STACK_SNAPSHOT) .get(h -> ItemStackUtil.snapshotOf(h.getItem())) - .setAnd((h, v) -> { - h.setItem(ItemStackUtil.fromSnapshotToNative(v)); - - return true; - }); + .set((h, v) -> h.setItem(ItemStackUtil.fromSnapshotToNative(v))); } // @formatter:on