File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
stickynote-bukkit/stickynote-bukkit-nms/src/main/kotlin/org/sayandev/stickynote/bukkit/nms Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ object NMSUtils {
201201 }
202202
203203 fun setPlayerCamera (player : Player , nmsEntity : Any ) {
204- ServerPlayerAccessor .METHOD_SET_CAMERA !! .invoke(getServerPlayer(player!! ), nmsEntity)
204+ ServerPlayerAccessor .METHOD_SET_CAMERA !! .invoke(getServerPlayer(player), nmsEntity)
205205 }
206206
207207 fun getPlayerUseItem (player : Player ): ItemStack ? {
@@ -285,7 +285,7 @@ object NMSUtils {
285285 val nmsSign: Any = getNmsSign(sign)
286286
287287 if (ServerVersion .supports(20 )) {
288- val result = SignBlockEntityAccessor .METHOD_UPDATE_TEXT !! .invoke(
288+ SignBlockEntityAccessor .METHOD_UPDATE_TEXT !! .invoke(
289289 nmsSign,
290290 UnaryOperator { signText: Any ->
291291 val updatedText = SignTextAccessor .METHOD_SET_MESSAGE !! .invoke(
@@ -295,7 +295,7 @@ object NMSUtils {
295295 .serialize(component)
296296 )
297297 updatedText
298- } as UnaryOperator < Any > ,
298+ },
299299 isFront
300300 )
301301 } else if (ServerVersion .supports(13 )) {
@@ -481,9 +481,6 @@ object NMSUtils {
481481 return CRAFT_BLOCK_STATE_GET_HANDLE_METHOD .getOrThrow().invoke(null , blockState)
482482 }
483483
484- /* *
485- * @apiNote >= 1.9, For 1.8 use [me.mohamad82.ruom.utils.SoundGroupUtils.getBlockSound]
486- */
487484 /* TODO SoundGroupUtils
488485 fun getSoundGroup(material: Material?): SoundGroup? {
489486 try {
You can’t perform that action at this time.
0 commit comments