Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 2b37b78

Browse files
author
xtexChooser
committed
feat: support 1.19.2
1 parent fdcce13 commit 2b37b78

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/scpsharp/mixin/LivingEntityMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class LivingEntityMixin {
2626
)
2727
public void wakeUp(CallbackInfo info) {
2828
var thisEntity = (LivingEntity) (Object) this;
29-
for (var stack : thisEntity.getItemsHand()) {
29+
for (var stack : thisEntity.getHandItems()) {
3030
if (stack.getItem() instanceof SCP714Item) {
3131
if (thisEntity.getAttacker() != null && !thisEntity.getType().isIn(SCP714.INSTANCE.getBYPASS_TAG())) {
3232
if (thisEntity instanceof PlayerEntity thisPlayer

src/main/java/scpsharp/mixin/ServerPlayerEntityMixin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public ServerPlayerEntityMixin(World world, BlockPos pos, float yaw, GameProfile
3434
cancellable = true
3535
)
3636
public void trySleep(BlockPos pos, CallbackInfoReturnable<Either<SleepFailureReason, Unit>> info) {
37-
var thisEntity = (ServerPlayerEntityMixin) this;
38-
for (var stack : getItemsHand()) {
37+
for (var stack : getHandItems()) {
3938
if (stack.getItem() instanceof SCP714Item) {
4039
incrementStat(SCP714.INSTANCE.getSLEEP_WITH_STAT());
4140
info.setReturnValue(super.trySleep(pos));

0 commit comments

Comments
 (0)