Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes BB-11
  • Loading branch information
Rob "N3X15" Nelson committed Apr 27, 2011
1 parent 8f88a19 commit f97eafa
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -65,9 +65,11 @@ public static DeltaEntry[] processDeltaStream(int chestCapacity, String data) {
}
int numskipped=0;
for(String chunk : data.split(";")) {
// Maybe handle BB-11? (Test)
// Handle chest deltas where the chest is merely opened and then closed without changing crap.
if(chunk.startsWith("{"))
chunk=chunk.substring(1);
if(chunk.isEmpty())
continue;
DeltaEntry e = new DeltaEntry(chunk);
// Check if we have enough room before adding crap to the array. Solves BB-10.
if(e.Slot > chestCapacity-1) {
Expand Down

0 comments on commit f97eafa

Please sign in to comment.