fixed paste in book
This commit is contained in:
parent
c82aa4392f
commit
061afaf582
@ -1,6 +1,8 @@
|
||||
eaglercraft is an AOT compiled port of mojang's minecraft 1.5.2 designed to run in an html5/javascript environment, using TeaVM and my opengl 1.3 emulator to simulate a desktop java enviroment fully compatible with minecraft java edition
|
||||
|
||||
§1this §1was §1created §1by §1calder §1young §1(LAX1DUDE)
|
||||
§1this §1was §1created §1by §1calder §1young §1(lax1dude)§r
|
||||
|
||||
§4ingame §4voice §4chat §4service §4created §4by §4ayunami2000§r
|
||||
|
||||
compiling the javascript and emulating the JRE is largely made possible by the TeaVM project, created by Alexey Andreev and is available for free at §nhttp://teavm.org/§r under Apache License 2.0
|
||||
|
||||
|
@ -114,6 +114,11 @@ public class GuiScreenBook extends GuiScreen {
|
||||
if (this.bookIsUnsigned && this.bookModified) {
|
||||
if (this.bookPages != null) {
|
||||
while (this.bookPages.tagCount() > 1) {
|
||||
int i;
|
||||
while((i = this.bookPages.tagCount()) > 51) {
|
||||
this.bookPages.removeTag(i - 1);
|
||||
}
|
||||
|
||||
NBTTagString var2 = (NBTTagString) this.bookPages.tagAt(this.bookPages.tagCount() - 1);
|
||||
|
||||
if (var2.data != null && var2.data.length() != 0) {
|
||||
@ -237,7 +242,13 @@ public class GuiScreenBook extends GuiScreen {
|
||||
return;
|
||||
|
||||
default:
|
||||
if (ChatAllowedCharacters.isAllowedCharacter(par1)) {
|
||||
boolean ctrl = GuiScreen.isCtrlKeyDown();
|
||||
if(ctrl && (par1 == 'v' || par1 == 'V')) {
|
||||
String s4 = GuiScreen.getClipboardString();
|
||||
if(s4 != null && s4.length() > 0) {
|
||||
this.func_74160_b(s4);
|
||||
}
|
||||
}else if (ChatAllowedCharacters.isAllowedCharacter(par1)) {
|
||||
this.func_74160_b(Character.toString(par1));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user