Left click right click events not triggering.

Aperta
#8,532 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by reviewing the event handling changes in the custom Skript build referenced in issue #8434 and compare them with the reported left- and right-click cases. Reproduce using the two supplied event listeners, a spear while looking at a block, and simultaneous left and right click; check whether both events trigger as expected. The report does not name source files or tests, so locate the relevant event handling and tests before making changes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs testing
Skript/Server Version
[23:23:07 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[23:23:07 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[23:23:07 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[23:23:07 INFO]: [Skript] Server Version: 1.21.11-128-1fdbce1 (MC: 1.21.11)
[23:23:07 INFO]: [Skript] Skript Version: 2.14.1 (selfbuilt-unknown)
[23:23:07 INFO]: [Skript] Installed Skript Addons: 
[23:23:07 INFO]: [Skript]  - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[23:23:07 INFO]: [Skript]  - SkBee v3.19.0 (https://github.com/ShaneBeee/SkBee)
[23:23:07 INFO]: [Skript] Installed dependencies: 
[23:23:07 INFO]: [Skript]  - Vault v1.7.3-b131
[23:23:07 INFO]: [Skript]  - WorldGuard v7.0.16+2355-f7fded2
Bug Description
on left click:
	send "leftclick" to player

When using the code above and the custom skript build given to me in https://github.com/SkriptLang/Skript/issues/8434, the left click event is not triggered when using a spear and looking at a block.

on right click:
	send "rightclick" to player

When using the code above, the event is not triggered if you left click at the same time you right click on the custom skript build given to me in https://github.com/SkriptLang/Skript/issues/8434. Left click event still works when both right click and left click are triggered so it might be right click only gets cancelled if there is a left click event listener in skript. I am unable to test weather the issue persists if there is no other skript with a left click event to interfere with the right click event right now.

Also unable to test this with a normal skript version rn but will addon to this when I can. This is just a bug report with that custom version for now and I saw the bug was fixed in 2.15 so if the custom version given to me was used in the fix for 2.15, this bug report would be for that 2.15 version I guess.

Expected Behavior

Left click events triggering when holding a spear and looking at a block and and right click events triggering when left clicking.

Steps to Reproduce

Use this code:

on left click:
	send "leftclick" to player

on right click:
	send "rightclick" to player

Hold a spear and left click while looking at a block to test the first one, and left click and right click at the same time to test the second one.

Errors or Screenshots

No response

Other

Full console logs: https://mclo.gs/JbeW8ZN

Agreement
  • I have read the guidelines above and affirm I am following them with this report.
Lingua principale
Java
Stelle
1.3k
Fork
456
Merge medio
4g 14h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SkriptLang/Skript

Tutte le issue di SkriptLang/Skript

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.