Fixed build-destory-only not working #251
@ -113,7 +113,7 @@ public class TraceRecorder implements Listener {
|
|||||||
public void stopRecording(Region region) {
|
public void stopRecording(Region region) {
|
||||||
TraceRecordingWrapper wrappedTrace = activeTraces.getOrDefault(region, null);
|
TraceRecordingWrapper wrappedTrace = activeTraces.getOrDefault(region, null);
|
||||||
if (wrappedTrace == null) return;
|
if (wrappedTrace == null) return;
|
||||||
|
|
||||||
wrappedTrace.finalizeRecording();
|
wrappedTrace.finalizeRecording();
|
||||||
activeTraces.remove(region);
|
activeTraces.remove(region);
|
||||||
for (TNTPrimed tnt : trackedTNT.getOrDefault(region, Collections.emptyList())) {
|
for (TNTPrimed tnt : trackedTNT.getOrDefault(region, Collections.emptyList())) {
|
||||||
@ -247,10 +247,9 @@ public class TraceRecorder implements Listener {
|
|||||||
*
|
*
|
||||||
* @param event
|
* @param event
|
||||||
*/
|
*/
|
||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
|
||||||
public void onTNTExplode(EntityExplodeEvent event) {
|
public void onTNTExplode(EntityExplodeEvent event) {
|
||||||
if (!(event.getEntity() instanceof TNTPrimed)) return;
|
if (!(event.getEntity() instanceof TNTPrimed)) return;
|
||||||
|
|
||||||
Region region = tntSpawnRegion.getOrDefault((TNTPrimed) event.getEntity(), null);
|
Region region = tntSpawnRegion.getOrDefault((TNTPrimed) event.getEntity(), null);
|
||||||
if (region == null) return;
|
if (region == null) return;
|
||||||
trackedTNT.get(region).remove((TNTPrimed) event.getEntity());
|
trackedTNT.get(region).remove((TNTPrimed) event.getEntity());
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren