mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: md_5 <md_5@live.com.au>
|
||
|
Date: Mon, 22 Jul 2013 19:09:43 +1000
|
||
|
Subject: [PATCH] Catch Conversation API Errors
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/org/bukkit/conversations/Conversation.java b/src/main/java/org/bukkit/conversations/Conversation.java
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/org/bukkit/conversations/Conversation.java
|
||
|
+++ b/src/main/java/org/bukkit/conversations/Conversation.java
|
||
|
@@ -0,0 +0,0 @@ public class Conversation {
|
||
|
* @param input The user's chat text.
|
||
|
*/
|
||
|
public void acceptInput(String input) {
|
||
|
+ try { // Spigot
|
||
|
if (currentPrompt != null) {
|
||
|
|
||
|
// Echo the user's input
|
||
|
@@ -0,0 +0,0 @@ public class Conversation {
|
||
|
currentPrompt = currentPrompt.acceptInput(context, input);
|
||
|
outputNextPrompt();
|
||
|
}
|
||
|
+ // Spigot Start
|
||
|
+ } catch ( Throwable t )
|
||
|
+ {
|
||
|
+ org.bukkit.Bukkit.getLogger().log( java.util.logging.Level.SEVERE, "Error handling conversation prompt", t );
|
||
|
+ }
|
||
|
+ // Spigot End
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
--
|