Language: Java
Label: safe
CWE: CWE-502 \u2014 Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

Code:
	protected void actionPerformed(GuiButton guibutton) {
		if(5 <= guibutton.id && guibutton.id < 11) {
			_logic.handleStackMove(guibutton.id - 5);
		}
		if(30 <= guibutton.id && guibutton.id < 40) {
			_logic.setNextSatellite(_player, guibutton.id - 30);
		}
		if(40 <= guibutton.id && guibutton.id < 50) {
			_logic.setPrevSatellite(_player, guibutton.id - 40);
		}
		switch(guibutton.id){
		case 0:
			_logic.setNextSatellite(_player);
			return;
		case 1: 
			_logic.setPrevSatellite(_player);
			return;
		/*case 2:
			_logic.paintPathToSatellite();
			return;*/
		case 3:
			_logic.importFromCraftingTable(_player);
			return;
		case 4:
			_logic.openAttachedGui(_player);
			return;
		case 20:
			_logic.priorityUp(_player);
			return;
		case 21:
			_logic.priorityDown(_player);
			return;
		default:
			super.actionPerformed(guibutton);
			return;
		}
	}