World modification fix (#1232)

* World modification fix

* isWorldModificationRestricted -> isBlockBreakingRestricted
This commit is contained in:
Joseph Burton 2020-04-14 15:01:34 +01:00 committed by GitHub
parent 4a8babd645
commit bff0236300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity
ARG 2 category
ARG 3 volume
ARG 4 pitch
METHOD method_21701 canMine (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1934;)Z
METHOD method_21701 isBlockBreakingRestricted (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1934;)Z
ARG 1 world
ARG 2 pos
ARG 3 gameMode
@ -135,7 +135,7 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity
ARG 2 inventory
METHOD method_7292 getLuck ()F
METHOD method_7293 vanishCursedItems ()V
METHOD method_7294 canModifyWorld ()Z
METHOD method_7294 canModifyBlocks ()Z
METHOD method_7295 updateWaterSubmersionState ()Z
METHOD method_7296 dropShoulderEntity (Lnet/minecraft/class_2487;)V
ARG 1 entityNbt

View File

@ -20,5 +20,5 @@ CLASS net/minecraft/class_1934 net/minecraft/world/GameMode
METHOD method_8385 byName (Ljava/lang/String;)Lnet/minecraft/class_1934;
ARG 0 name
METHOD method_8386 isCreative ()Z
METHOD method_8387 shouldLimitWorldModification ()Z
METHOD method_8387 isBlockBreakingRestricted ()Z
METHOD method_8388 isSurvivalLike ()Z