Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

Commit

Permalink
release 0.0.3preR3
Browse files Browse the repository at this point in the history
  • Loading branch information
DefinitlyEvil committed Dec 1, 2015
1 parent be42770 commit 7473f06
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ public void sendPacket(PEPacket packet){
}

public void sendPacket(PEPacket packet, int reliability){

inf.sendPacket(raknetIdentifier, packet, true, packet.isShouldSendImmidate());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public RakNetInterface(SessionManager sesMan, String bindAddress, int port) {
String name = "MCPE;";
name += sesMan.getServer().getServer().getServerName().replace(";", "\\;") + ";";
name += DragonetVersioning.MINECRAFT_PE_VERSION + ";";
name += "MCPC " + DragonetVersioning.MINECRAFT_PC_VERSION + ", MCPE " + DragonetVersioning.MINECRAFT_PE_VERSION + ";";
name += "MCPC " + DragonetVersioning.MINECRAFT_PE_VERSION + ";";
name += "-1;-1";
this.handler.sendOption("name", name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/dragonet/net/packet/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public final class Protocol {

private static HashMap<Byte, Class<? extends PEPacket>> protocol;
private final static HashMap<Byte, Class<? extends PEPacket>> protocol;

static {
protocol = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public int pid() {

@Override
public void encode() {
setShouldSendImmidate(true);
try {
setChannel(NetworkChannel.CHANNEL_BLOCKS);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

public class PlayerActionPacketTranslator extends PEPacketTranslatorToPC<Translator_v0_11, PlayerActionPacket> {

private final static DiggingHandler HANDLER = new DiggingHandler();

public PlayerActionPacketTranslator(Translator_v0_11 translator, DragonetSession session) {
super(translator, session);
}
Expand All @@ -32,12 +34,10 @@ public Message[] handleSpecific(PlayerActionPacket packet) {
switch (packet.action) {
case PlayerActionPacket.ACTION_START_BREAK:
DiggingMessage msgStartBreak = new DiggingMessage(DiggingMessage.START_DIGGING, packet.x, packet.y, packet.z, packet.face);
new DiggingHandler().handle(getSession(), msgStartBreak);
/*
HANDLER.handle(getSession(), msgStartBreak);
case PlayerActionPacket.ACTION_FINISH_BREAK:
DiggingMessage msgFinishBreak = new DiggingMessage(DiggingMessage.FINISH_DIGGING, packet.x, packet.y, packet.z, packet.face);
new DiggingHandler().handle(this.getSession(), msgFinishBreak);
*/
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public final class DragonetVersioning {

public final static String DRAGONET_VERSION = "BlueSky(0.0.3) preR2";
public final static String DRAGONET_VERSION = "BlueSky(0.0.3) preR3";

public final static String MINECRAFT_PC_VERSION = "1.8.8";
public final static String MINECRAFT_PE_VERSION = "0.13.0";
Expand Down

2 comments on commit 7473f06

@Creeperface01
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! :)

@DefinitlyEvil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.