EngineHub / EngineHub/WorldGuard

Can bypass regions with mob spawn egg when used on water.

Offen
#2,000 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
status:accepted status:upstream type:bug
Vorherrschende Sprache
Java
Sterne
938
Forks
671
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### WorldEdit Version

Bukkit-Official(7.2.15-SNAPSHOT+6372-93c0d36)

### WorldGuard Version

Bukkit-Official (7.0.8-SNAPSHOT+2231-bddfbdd)

### Platform Version

Paper 1.19.4 Build 514

### Confirmations

- [X] I am using the most recent Minecraft release.
- [X] I am using a version of WorldEdit compatible with my Minecraft version.
- [X] I am using a version of WorldGuard compatible with my Minecraft version.
- [X] I am using the latest or recommended version of my platform software.
- [X] I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- [X] I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

### Bug Description

When inside a region you do not have access to, aiming at water, at just the right angle, so your client isn't selecting any block behind the water, as such: (https://i.imgur.com/uIA0HbX.png) as opposed to as such: (https://i.imgur.com/7MzAUji.png) you are able to bypass region protection, and place mob spawn eggs, spawning the mob.

### Expected Behavior

Respect region protection and do not allow item usage if not part of the region, regardless of how your client is aimed.

### Reproduction Steps

1. Create region.
2. Use a typical spawn egg, such as a cow spawn egg.
3. Aim at water as shown in first screenshot in Bug Description section.
4. Right click to place mob bypassing protection.

### Optional WorldGuard-Report

_No response_

### Anything Else?

Using block-entity-spawns-with-untraceable-cause: true - is a temporary solution, however this breaks a wide variety of other entity spawn related things on the server, to the point where running this setting on true is simply game-breaking.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Das Issue nennt keine Quelldateien oder Tests. Reproduziere den Bypass zunächst auf Paper 1.19.4 mit WorldGuard 7.0.8 und WorldEdit 7.2.15 und verfolge dann die Verarbeitung des Gebietsschutzes für spawn eggs, die auf Wasser zielen. Als erledigt gilt die Aufgabe, wenn das spawn egg bei seiner Verwendung in einem geschützten Gebiet unabhängig vom Zielwinkel blockiert wird, ohne auf den Workaround mit der fehlerhaften Konfiguration angewiesen zu sein.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
authorization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.